fix warning in reload cache in dev mode

This commit is contained in:
slawkens 2023-02-07 10:13:04 +01:00
parent 5747fb5723
commit 3700875c47

View File

@ -1166,7 +1166,10 @@ function clearCache()
deleteDirectory(CACHE, ['signatures', 'twig', 'plugins', 'index.html'], true);
// routes cache
unlink(CACHE . 'route.cache');
$routeCacheFile = CACHE . 'route.cache';
if (file_exists($routeCacheFile)) {
unlink($routeCacheFile);
}
return true;
}