mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-28 07:40:15 +02:00
Delete clearRouteCache, was useless
Directory is cleaned already
This commit is contained in:
parent
fe8281594e
commit
047742848b
@ -1275,23 +1275,12 @@ function clearCache()
|
|||||||
deleteDirectory(CACHE . 'plugins', ['index.html'], true);
|
deleteDirectory(CACHE . 'plugins', ['index.html'], true);
|
||||||
deleteDirectory(CACHE, ['signatures', 'twig', 'plugins', 'index.html', 'persistent'], true);
|
deleteDirectory(CACHE, ['signatures', 'twig', 'plugins', 'index.html', 'persistent'], true);
|
||||||
|
|
||||||
// routes cache
|
|
||||||
clearRouteCache();
|
|
||||||
|
|
||||||
global $hooks;
|
global $hooks;
|
||||||
$hooks->trigger(HOOK_CACHE_CLEAR, ['cache' => Cache::getInstance()]);
|
$hooks->trigger(HOOK_CACHE_CLEAR, ['cache' => Cache::getInstance()]);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearRouteCache(): void
|
|
||||||
{
|
|
||||||
$routeCacheFile = CACHE . 'route.cache';
|
|
||||||
if (file_exists($routeCacheFile)) {
|
|
||||||
unlink($routeCacheFile);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function getCustomPageInfo($name)
|
function getCustomPageInfo($name)
|
||||||
{
|
{
|
||||||
global $logged_access;
|
global $logged_access;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user