mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-09 17:15:19 +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()
|
function garbage_collection()
|
||||||
{
|
{
|
||||||
global $cache, $db;
|
global $cache, $db;
|
||||||
|
global $phpbb_dispatcher;
|
||||||
|
|
||||||
|
$phpbb_dispatcher->dispatch('core.garbage_collection');
|
||||||
|
|
||||||
// Unload cache, must be done before the DB connection if closed
|
// Unload cache, must be done before the DB connection if closed
|
||||||
if (!empty($cache))
|
if (!empty($cache))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user