예제 #1
0
 public function load($id, $doNotTestCacheValidity = false)
 {
     $ret = parent::load($id, $doNotTestCacheValidity);
     if ($this->_options['compression']) {
         $ret = gzinflate($ret);
     }
     return $ret;
 }
예제 #2
0
 /**
  * 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);
 }