mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00: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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue