Redaxscript\Cache::_validateFile PHP Method

_validateFile() protected method

validate the file
Since: 3.0.0
protected _validateFile ( string $path = null, integer $lifetime = 3600 ) : boolean
$path string path of the bundle
$lifetime integer lifetime of the bundle
return boolean
    protected function _validateFile($path = null, $lifetime = 3600)
    {
        return filesize($path) && filemtime($path) > time() - $lifetime;
    }