public function load($id, $doNotTestCacheValidity = false) { $ret = parent::load($id, $doNotTestCacheValidity); if ($this->_options['compression']) { $ret = gzinflate($ret); } return $ret; }
/** * Extended parent load method * Test if a cache is available for the given id and (if yes) return it (false else) * * @param string $id cache id * @param boolean $doNotTestCacheValidity if set to true, the cache validity won't be tested * @return string|false cached datas */ public function load($id, $doNotTestCacheValidity = false) { $metadatas = $this->getMetadatas($id); if (count($metadatas['tags'])) { if (count(array_intersect($metadatas['tags'], $this->_disabledTags))) { return false; } } return parent::load($id, $doNotTestCacheValidity); }