private function getCacheContent($policy, $cache, &$data) {
        $policyContent = $this->tryReadFile($policy);
        $cacheContent = $this->tryReadFile($cache);
        $data = null;

        if ($policyContent === false || $cacheContent === false) {
            $this->tryDeleteFile($policy);
            $this->tryDeleteFile($cache);
            return false;
        }

        $policyEntry = json_decode($policyContent, true);

        $absoluteExpiration = (int)$policyEntry['absoluteExpiration'];

        if ($absoluteExpiration != 0 && $absoluteExpiration < time()) {
            $this->tryDeleteFile($policy);
            $this->tryDeleteFile($cache);
            return false;
        }

        $data = unserialize($cacheContent);

        return true;
    }
private function getCacheContent($policy, $cache, &$data) {
        $policyContent = $this->tryReadFile($policy);
        $cacheContent = $this->tryReadFile($cache);
        $data = null;

        if ($policyContent === false || $cacheContent === false) {
            $this->tryDeleteFile($policy);
            $this->tryDeleteFile($cache);
            return false;
        }

        $policyEntry = json_decode($policyContent, true);

        $absoluteExpiration = (int)$policyEntry['absoluteExpiration'];

        if ($absoluteExpiration != 0 && $absoluteExpiration < time()) {
            $this->tryDeleteFile($policy);
            $this->tryDeleteFile($cache);
            return false;
        }

        $data = unserialize($cacheContent);

        return true;
    }
private function getCacheContent ( $ policy , $ cache , & $ data ) { $ policyContent = $ this -> tryReadFile ( $ policy ) ; $ cacheContent = $ this -> tryReadFile ( $ cache ) ; $ data = null ; if ( $ policyContent === false || $ cacheContent === false ) { $ this -> tryDeleteFile ( $ policy ) ; $ this -> tryDeleteFile ( $ cache ) ; return false ; } $ policyEntry = json_decode ( $ policyContent , true ) ; $ absoluteExpiration = ( int ) $ policyEntry [ 'absoluteExpiration' ] ; if ( $ absoluteExpiration != 0 && $ absoluteExpiration < time ( ) ) { $ this -> tryDeleteFile ( $ policy ) ; $ this -> tryDeleteFile ( $ cache ) ; return false ; } $ data = unserialize ( $ cacheContent ) ; return true ; }
Gets content of cache entry.

@return bool
Gets content of cache entry .