Cache clear hook

This commit is contained in:
slawkens
2024-01-27 20:30:15 +01:00
parent 9a749afc46
commit 25c0bac7a3
2 changed files with 4 additions and 0 deletions

View File

@@ -1254,6 +1254,9 @@ function clearCache()
// routes cache
clearRouteCache();
global $hooks;
$hooks->trigger(HOOK_CACHE_CLEAR, ['cache' => Cache::getInstance()]);
return true;
}