src/Fetchers/SerpFetcher.php
public function cacheHit($url) {
        $file = FileSystemHelper::getCachedEntry($url, $this->getCacheDir());
        return $this->isCaching() && FileSystemHelper::cacheEntryExists($file)
               && FileSystemHelper::validateCache($file, $this->getCacheTTL(),
                                                  $this->isCachingForever());
    }
public function cacheHit($url) {
        $file = FileSystemHelper::getCachedEntry($url, $this->getCacheDir());
        return $this->isCaching() && FileSystemHelper::cacheEntryExists($file)
               && FileSystemHelper::validateCache($file, $this->getCacheTTL(),
                                                  $this->isCachingForever());
    }
public function cacheHit ( $ url ) { $ file = FileSystemHelper :: getCachedEntry ( $ url , $ this -> getCacheDir ( ) ) ; return $ this -> isCaching ( ) && FileSystemHelper :: cacheEntryExists ( $ file ) && FileSystemHelper :: validateCache ( $ file , $ this -> getCacheTTL ( ) , $ this -> isCachingForever ( ) ) ; }
Check if cache should be hit for a given url request.
@param  string $url
@return bool
Check if cache should be hit for a given url request .