public function checkCache()
    {
        if ($this->provide && $this->path && !$this->getAttempted()) {
            $file = sprintf('%s/vars/%s.php', $this->path, $this->name);
            $this->attempted = true;

            if (is_file($file) &&
                filemtime($file) >= (time() - $this->expire)) {
                $this->hit = true;
                return true;
            }
        }
        return false;
    }
public function checkCache()
    {
        if ($this->provide && $this->path && !$this->getAttempted()) {
            $file = sprintf('%s/vars/%s.php', $this->path, $this->name);
            $this->attempted = true;

            if (is_file($file) &&
                filemtime($file) >= (time() - $this->expire)) {
                $this->hit = true;
                return true;
            }
        }
        return false;
    }
public function checkCache ( ) { if ( $ this -> provide && $ this -> path && ! $ this -> getAttempted ( ) ) { $ file = sprintf ( '%s/vars/%s.php' , $ this -> path , $ this -> name ) ; $ this -> attempted = true ; if ( is_file ( $ file ) && filemtime ( $ file ) >= ( time ( ) - $ this -> expire ) ) { $ this -> hit = true ; return true ; } } return false ; }
Checks the cache to see if there is a valid cache available

@return bool Returns true if has the cached resource
Checks the cache to see if there is a valid cache available