/** * Devuelve true si el cache ha caducado */ private static function cacheCaducado($ruta) { self::$existe = file_exists($ruta); if (self::$existe) { self::$existe = time() - microtime() - filemtime($ruta) < genCTs::HTML_CACHE_LIFETIME ? true : false; } return !self::$existe; }