Behat\Gherkin\Cache\FileCache::isFresh PHP Method

isFresh() public method

Checks that cache for feature exists and is fresh.
public isFresh ( string $path, integer $timestamp ) : boolean
$path string Feature path
$timestamp integer The last time feature was updated
return boolean
    public function isFresh($path, $timestamp)
    {
        $cachePath = $this->getCachePathFor($path);
        if (!file_exists($cachePath)) {
            return false;
        }
        return filemtime($cachePath) > $timestamp;
    }