function to clear event listeners
This commit is contained in:
parent
eb3cc73bce
commit
a0b1c82d0d
@ -23,6 +23,13 @@ function _load_event_listeners(): void
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _clear_cached_event_listeners(): void
|
||||||
|
{
|
||||||
|
if (file_exists(data_path("cache/shm_event_listeners.php"))) {
|
||||||
|
unlink(data_path("cache/shm_event_listeners.php"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function _set_event_listeners(): void
|
function _set_event_listeners(): void
|
||||||
{
|
{
|
||||||
global $_shm_event_listeners;
|
global $_shm_event_listeners;
|
||||||
|
@ -224,8 +224,6 @@ class ExtManager extends Extension
|
|||||||
// when the list of active extensions changes, we can be
|
// when the list of active extensions changes, we can be
|
||||||
// pretty sure that the list of who reacts to what will
|
// pretty sure that the list of who reacts to what will
|
||||||
// change too
|
// change too
|
||||||
if (file_exists("data/cache/event_listeners.php")) {
|
_clear_cached_event_listeners();
|
||||||
unlink("data/cache/event_listeners.php");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user