/** * Process object after delete data * * @return Core_Model_Abstract */ protected function _afterDelete() { if ($this->_cacheTag) { if ($this->_cacheTag === true) { $tags = array(); } else { $tags = array($this->_cacheTag); } App_Main::getCacheFactory()->cleanCache($tags); } return $this; }
/** * Replace URLs from cache * * @return string HTML */ protected function _afterCacheUrl($html) { if (App_Main::useCache('block_html')) { App_Main::getCacheFactory()->setUseSessionVar(false); } return $html; }
/** * Clean cache * * @param array $tags * @return Core_Helper_Abstract */ protected function _cleanCache($tags = array()) { App_Main::getCacheFactory()->cleanCache($tags); return $this; }