mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
[feature/php-events] Add docs for core.garbage_collection
PHPBB3-9550
This commit is contained in:
@@ -5187,6 +5187,12 @@ function garbage_collection()
|
|||||||
global $cache, $db;
|
global $cache, $db;
|
||||||
global $phpbb_dispatcher;
|
global $phpbb_dispatcher;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unload some objects, to free some memory, before we finish our task
|
||||||
|
*
|
||||||
|
* @event core.garbage_collection
|
||||||
|
* @since 3.1-A1
|
||||||
|
*/
|
||||||
$phpbb_dispatcher->dispatch('core.garbage_collection');
|
$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
|
||||||
|
Reference in New Issue
Block a user