/** * Returns a reusable object from the cache * * @param string $modelName * @param string $key * * @return object */ public function getReusableRecords($modelName, $key) { //If the model is Products use the APC cache if ($modelName == 'Products') { return apc_fetch($key); } //For the rest, use the memory cache return parent::getReusableRecords($modelName, $key); }