protected function isCached()
    {
        $cacheTime = self::CACHE_TIME * 60;

        if (!is_file($this->pathCache)) {
            return false;
        }

        $cachedTime = filemtime($this->pathCache);
        $cacheAge = $this->time - $cachedTime;

        return $cacheAge < $cacheTime;
    }
protected function isCached()
    {
        $cacheTime = self::CACHE_TIME * 60;

        if (!is_file($this->pathCache)) {
            return false;
        }

        $cachedTime = filemtime($this->pathCache);
        $cacheAge = $this->time - $cachedTime;

        return $cacheAge < $cacheTime;
    }
protected function isCached ( ) { $ cacheTime = self :: CACHE_TIME * 60 ; if ( ! is_file ( $ this -> pathCache ) ) { return false ; } $ cachedTime = filemtime ( $ this -> pathCache ) ; $ cacheAge = $ this -> time - $ cachedTime ; return $ cacheAge < $ cacheTime ; }
Checks if the image file exists in the cache.

@return bool
Checks if the image file exists in the cache .