From 047742848bf1a14282ceac2af7cc397ce5ae6725 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 27 Jun 2025 07:15:13 +0200 Subject: [PATCH] Delete clearRouteCache, was useless Directory is cleaned already --- system/functions.php | 11 ----------- 1 file changed, 11 deletions(-) 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;