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); }
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; }