clear event listener cache when exts change

This commit is contained in:
Shish 2012-06-18 00:29:41 +01:00
parent a9b3ffe0eb
commit 8173a7cafd

View File

@ -188,6 +188,13 @@ class ExtManager extends Extension {
'define("EXTRA_EXTS", "'.implode(",", $extras).'");'."\n".
'?'.">"
);
// when the list of active extensions changes, we can be
// pretty sure that the list of who reacts to what will
// change too
if(file_exists("data/cache/event_listeners.php")) {
unlink("data/cache/event_listeners.php");
}
}
}
?>