/** * Generates the cache key for an active record * @param ActiveRecord $input the data to generate the key for * @param array $qualifiers the qualifiers that differentiate the item * * @return string the cache key */ protected function createActiveRecordKey(ActiveRecord $input, $qualifiers = array()) { $prepend = $input->controllerID() . ':'; $append = $input->getDbCriteria()->toArray(); return $this->calculateKey($prepend, array($append, $qualifiers)); }