コード例 #1
0
ファイル: Array.php プロジェクト: netconstructor/Centurion
 public function __destruct()
 {
     $cached = array($this->_checkedWord, $this->_checkedTag, $this->_checkedWordTag);
     $tags = array();
     $tags[] = Centurion_Cache_TagManager::getTagOf($this->_uidTable);
     $tags[] = Centurion_Cache_TagManager::getTagOf($this->_tagTable);
     $tags[] = Centurion_Cache_TagManager::getTagOf($this->_tagUidTable);
     if ($this->_languageTable !== null) {
         $tags[] = Centurion_Cache_TagManager::getTagOf($this->_languageTable);
     }
     self::getCache()->save($cached, 'Translation_Model_Translate_Adapter_Array_Cache', $tags);
 }
コード例 #2
0
ファイル: Cache.php プロジェクト: netconstructor/Centurion
 protected function _setupCache($backendName)
 {
     $frontend = new Zend_Cache_Frontend_Class($this->_frontendOptions);
     $this->_cache = Zend_Cache::factory($frontend, $backendName, $this->_frontendOptions, $this->_backendOptions);
     $this->_cache->setTagsArray(array(Centurion_Cache_TagManager::getTagOf($this->_object)));
     return $this;
 }