1
0
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:
Erik Frèrejean 2012-04-10 20:35:30 +02:00 committed by Joas Schilling
parent 5869128828
commit e21861b488

View File

@ -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))