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();
    }
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();
    }
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 ( ) ; }
Gets cache content if necessary
@return boolean
Gets cache content if necessary