Redaxscript\Cache::_validateFile PHP Метод

_validateFile() защищенный Метод

validate the file
С версии: 3.0.0
protected _validateFile ( string $path = null, integer $lifetime = 3600 ) : boolean
$path string path of the bundle
$lifetime integer lifetime of the bundle
Результат boolean
    protected function _validateFile($path = null, $lifetime = 3600)
    {
        return filesize($path) && filemtime($path) > time() - $lifetime;
    }