diff --git a/system/functions.php b/system/functions.php index 3ef7a8a2..a3c302c3 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1275,23 +1275,12 @@ function clearCache() deleteDirectory(CACHE . 'plugins', ['index.html'], true); deleteDirectory(CACHE, ['signatures', 'twig', 'plugins', 'index.html', 'persistent'], true); - // routes cache - clearRouteCache(); - global $hooks; $hooks->trigger(HOOK_CACHE_CLEAR, ['cache' => Cache::getInstance()]); return true; } -function clearRouteCache(): void -{ - $routeCacheFile = CACHE . 'route.cache'; - if (file_exists($routeCacheFile)) { - unlink($routeCacheFile); - } -} - function getCustomPageInfo($name) { global $logged_access;