public static function validateCache($file, $cacheTTL, $cacheForever)
    {
        $currentTime = time();
        $expireTime  = $cacheTTL * 60 * 60;
        $fileTime    = filemtime($file);
        return ($currentTime - $expireTime < $fileTime)
                or $cacheForever;
    }