/** * Tries to load data from cache if available * * @param int $timestamp * @return mixed */ protected function _loadFromCache($timestamp) { if (!$this->applicationCache instanceof Zend_Cache_Backend_Apc) { return false; } if ($timestamp > $this->applicationCache->test($this->getCacheKey())) { return false; } $cache = $this->applicationCache->load($this->getCacheKey()); if (!$this->_isCacheValid($cache)) { return false; } return $cache; }
public function load($id, $doNotTestCacheValidity = false) { if (PHP_SAPI == 'cli') { return false; } $id = $this->_processId($id); return parent::load($id, $doNotTestCacheValidity); }