Delete clearRouteCache, was useless

Directory is cleaned already
This commit is contained in:
slawkens 2025-06-27 07:15:13 +02:00
parent fe8281594e
commit 047742848b

View File

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