mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 16:15:22 +02:00
[feature/events] Adding core.garbage_collection event
See: http://area51.phpbb.com/phpBB/viewtopic.php?f=111&t=42799 for reference. PHPBB3-9550
This commit is contained in:
parent
5869128828
commit
e21861b488
@ -5165,6 +5165,9 @@ function page_footer($run_cron = true)
|
||||
function garbage_collection()
|
||||
{
|
||||
global $cache, $db;
|
||||
global $phpbb_dispatcher;
|
||||
|
||||
$phpbb_dispatcher->dispatch('core.garbage_collection');
|
||||
|
||||
// Unload cache, must be done before the DB connection if closed
|
||||
if (!empty($cache))
|
||||
|
Loading…
x
Reference in New Issue
Block a user