clearRouteCache on database pages change

This commit is contained in:
slawkens
2023-11-25 13:37:24 +01:00
parent e18ada3d9d
commit b1224d9d1a
2 changed files with 16 additions and 3 deletions

View File

@@ -1265,12 +1265,17 @@ function clearCache()
deleteDirectory(CACHE, ['signatures', 'twig', 'plugins', 'index.html', 'persistent'], true);
// routes cache
clearRouteCache();
return true;
}
function clearRouteCache(): void
{
$routeCacheFile = CACHE . 'route.cache';
if (file_exists($routeCacheFile)) {
unlink($routeCacheFile);
}
return true;
}
function getCustomPageInfo($name)