Example #1
0
 /**
  * нужен ли кеш для хранения xml модуля?
  * 
  * @return boolean да или нет 
  */
 protected function checkCacheSettings()
 {
     if (isset($this->params['cache']) && $this->params['cache']) {
         $this->xml_cache_name = Request::getModuleUniqueHash($this->moduleName, $this->action, $this->mode, $this->params);
         if (Request::post('writemodule')) {
             // erasing cache if any write actions
             Cache::drop($this->xml_cache_name, Cache::DATA_TYPE_XML);
             $this->cache_enabled = false;
         } else {
             $this->cache_enabled = true;
         }
     }
     return $this->cache_enabled;
 }