protected function fetch($cid, $resource_name = null, $cache_id = null, $compile_id = null, &$content = null, &$timestamp = null, $resource_uid = null)
    {
        $t = $this->read(array($cid));
        $content = !empty($t[$cid]) ? $t[$cid] : null;
        $timestamp = null;

        if ($content && ($timestamp = $this->getMetaTimestamp($content))) {
            $invalidated = $this->getLatestInvalidationTimestamp($cid, $resource_name, $cache_id, $compile_id, $resource_uid);
            if ($invalidated > $timestamp) {
                $timestamp = null;
                $content = null;
            }
        }

        return !!$content;
    }
protected function fetch($cid, $resource_name = null, $cache_id = null, $compile_id = null, &$content = null, &$timestamp = null, $resource_uid = null)
    {
        $t = $this->read(array($cid));
        $content = !empty($t[$cid]) ? $t[$cid] : null;
        $timestamp = null;

        if ($content && ($timestamp = $this->getMetaTimestamp($content))) {
            $invalidated = $this->getLatestInvalidationTimestamp($cid, $resource_name, $cache_id, $compile_id, $resource_uid);
            if ($invalidated > $timestamp) {
                $timestamp = null;
                $content = null;
            }
        }

        return !!$content;
    }
protected function fetch ( $ cid , $ resource_name = null , $ cache_id = null , $ compile_id = null , & $ content = null , & $ timestamp = null , $ resource_uid = null ) { $ t = $ this -> read ( array ( $ cid ) ) ; $ content = ! empty ( $ t [ $ cid ] ) ? $ t [ $ cid ] : null ; $ timestamp = null ; if ( $ content && ( $ timestamp = $ this -> getMetaTimestamp ( $ content ) ) ) { $ invalidated = $ this -> getLatestInvalidationTimestamp ( $ cid , $ resource_name , $ cache_id , $ compile_id , $ resource_uid ) ; if ( $ invalidated > $ timestamp ) { $ timestamp = null ; $ content = null ; } } return ! ! $ content ; }
Fetch and prepare a cache object.

@param  string  $cid           CacheID to fetch
@param  string  $resource_name template name
@param  string  $cache_id      cache id
@param  string  $compile_id    compile id
@param  string  $content       cached content
@param  integer &$timestamp    cached timestamp (epoch)
@param  string  $resource_uid  resource's uid
@return boolean success
Fetch and prepare a cache object .