We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a749af commit 25c0bacCopy full SHA for 25c0bac
system/functions.php
@@ -1254,6 +1254,9 @@ function clearCache()
1254
// routes cache
1255
clearRouteCache();
1256
1257
+ global $hooks;
1258
+ $hooks->trigger(HOOK_CACHE_CLEAR, ['cache' => Cache::getInstance()]);
1259
+
1260
return true;
1261
}
1262
system/src/global.php
@@ -73,6 +73,7 @@
73
define('HOOK_GUILDS_AFTER_GUILD_MEMBERS', ++$i);
74
define('HOOK_GUILDS_AFTER_INVITED_CHARACTERS', ++$i);
75
define('HOOK_TWIG', ++$i);
76
+define('HOOK_CACHE_CLEAR', ++$i);
77
78
const HOOK_FIRST = HOOK_STARTUP;
79
define('HOOK_LAST', $i);
0 commit comments