コード例 #1
0
ファイル: Abstract.php プロジェクト: hettema/Stages
 /**
  * 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;
 }
コード例 #2
0
ファイル: Abstract.php プロジェクト: hettema/Stages
 /**
  * Replace URLs from cache
  * 
  * @return string HTML
  */
 protected function _afterCacheUrl($html)
 {
     if (App_Main::useCache('block_html')) {
         App_Main::getCacheFactory()->setUseSessionVar(false);
     }
     return $html;
 }
コード例 #3
0
ファイル: Abstract.php プロジェクト: hettema/Stages
 /**
  * Clean cache
  *
  * @param   array $tags
  * @return  Core_Helper_Abstract
  */
 protected function _cleanCache($tags = array())
 {
     App_Main::getCacheFactory()->cleanCache($tags);
     return $this;
 }