Exemplo n.º 1
0
 /**
  * Gets cache content if necessary
  * @return boolean
  */
 protected function BeforeInit()
 {
     //todo: check access rights
     $cacheFile = PathUtil::ContentCacheFile($this);
     $this->fileCacher = new FileCacher($cacheFile, $this->content->GetCacheLifetime());
     if ($this->fileCacher->MustUseCache()) {
         $this->output = $this->fileCacher->GetFromCache();
         return true;
     }
     return parent::BeforeInit();
 }