public function isCacheExpired($cachePath, $path)
    {
        if (! $this->files->exists($cachePath)) {
            return true;
        }

        $lastModified = $this->files->lastModified($path);

        if ($lastModified >= $this->files->lastModified($cachePath)) {
            return true;
        }

        return false;
    }
public function isCacheExpired($cachePath, $path)
    {
        if (! $this->files->exists($cachePath)) {
            return true;
        }

        $lastModified = $this->files->lastModified($path);

        if ($lastModified >= $this->files->lastModified($cachePath)) {
            return true;
        }

        return false;
    }
public function isCacheExpired ( $ cachePath , $ path ) { if ( ! $ this -> files -> exists ( $ cachePath ) ) { return true ; } $ lastModified = $ this -> files -> lastModified ( $ path ) ; if ( $ lastModified >= $ this -> files -> lastModified ( $ cachePath ) ) { return true ; } return false ; }
Determine if the cache file is expired.

@param  string  $cachePath
@param  string  $path
@return bool
Determine if the cache file is expired .