mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-02 04:09:21 +02:00
fix warning in reload cache in dev mode
This commit is contained in:
parent
5747fb5723
commit
3700875c47
@ -1166,7 +1166,10 @@ function clearCache()
|
|||||||
deleteDirectory(CACHE, ['signatures', 'twig', 'plugins', 'index.html'], true);
|
deleteDirectory(CACHE, ['signatures', 'twig', 'plugins', 'index.html'], true);
|
||||||
|
|
||||||
// routes cache
|
// routes cache
|
||||||
unlink(CACHE . 'route.cache');
|
$routeCacheFile = CACHE . 'route.cache';
|
||||||
|
if (file_exists($routeCacheFile)) {
|
||||||
|
unlink($routeCacheFile);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user