diff --git a/system/functions.php b/system/functions.php index a3c302c3..540c9af3 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1281,6 +1281,14 @@ function clearCache() return true; } +function clearRouteCache(): void +{ + $routeCacheFile = CACHE . 'route.cache'; + if (file_exists($routeCacheFile)) { + unlink($routeCacheFile); + } +} + function getCustomPageInfo($name) { global $logged_access;