src/Helpers/FileSystemHelper.php
public static function validateCache($file, $cacheTTL, $cacheForever)
    {
        $currentTime = time();
        $expireTime  = $cacheTTL * 60 * 60;
        $fileTime    = filemtime($file);
        return ($currentTime - $expireTime < $fileTime)
                or $cacheForever;
    }
public static function validateCache($file, $cacheTTL, $cacheForever)
    {
        $currentTime = time();
        $expireTime  = $cacheTTL * 60 * 60;
        $fileTime    = filemtime($file);
        return ($currentTime - $expireTime < $fileTime)
                or $cacheForever;
    }
public static function validateCache ( $ file , $ cacheTTL , $ cacheForever ) { $ currentTime = time ( ) ; $ expireTime = $ cacheTTL * 60 * 60 ; $ fileTime = filemtime ( $ file ) ; return ( $ currentTime - $ expireTime < $ fileTime ) or $ cacheForever ; }
Check if a given cache entry is still valid.
Will always return true if permanent caching has been set on.
@param  string $file
@param  int    $cacheTTL
@param  bool   $cacheForever
@return bool
Check if a given cache entry is still valid . Will always return true if permanent caching has been set on .