Core/Cache/Cache.php
public function setCache() {
        if (!file_exists($this->_fileName)) {
            file_put_contents($this->_fileName, $this->_compress(serialize($this->_content)));
        }

        $timeAgo = time() - filemtime($this->_fileName);

        if ($timeAgo > $this->_time) {
            file_put_contents($this->_fileName, $this->_compress(serialize($this->_content)));
        }
    }
public function setCache() {
        if (!file_exists($this->_fileName)) {
            file_put_contents($this->_fileName, $this->_compress(serialize($this->_content)));
        }

        $timeAgo = time() - filemtime($this->_fileName);

        if ($timeAgo > $this->_time) {
            file_put_contents($this->_fileName, $this->_compress(serialize($this->_content)));
        }
    }
public function setCache ( ) { if ( ! file_exists ( $ this -> _fileName ) ) { file_put_contents ( $ this -> _fileName , $ this -> _compress ( serialize ( $ this -> _content ) ) ) ; } $ timeAgo = time ( ) - filemtime ( $ this -> _fileName ) ; if ( $ timeAgo > $ this -> _time ) { file_put_contents ( $ this -> _fileName , $ this -> _compress ( serialize ( $ this -> _content ) ) ) ; } }
create the file cache
@access public
@return void
@since 3.0
@package Gcs\Framework\Core\Cache
create the file cache