mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-01 19:59:21 +02:00
fix warning in reload cache in dev mode
This commit is contained in:
parent
5747fb5723
commit
3700875c47
@ -1166,8 +1166,11 @@ 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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user