mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/php-events] Add docs for core.garbage_collection
PHPBB3-9550
This commit is contained in:
parent
997075a008
commit
e926ec9934
1 changed files with 6 additions and 0 deletions
|
@ -5187,6 +5187,12 @@ function garbage_collection()
|
|||
global $cache, $db;
|
||||
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');
|
||||
|
||||
// Unload cache, must be done before the DB connection if closed
|
||||
|
|
Loading…
Add table
Reference in a new issue