From 372380c8658eace26a6f9c1a6dccca1f94edbe2e Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 31 Oct 2008 11:08:01 +0000 Subject: Added system, gc plugin hook to garbage collector git-svn-id: https://code.elgg.org/elgg/trunk@2371 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/garbagecollector/start.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/garbagecollector') diff --git a/mod/garbagecollector/start.php b/mod/garbagecollector/start.php index a3daf250e..764925d59 100644 --- a/mod/garbagecollector/start.php +++ b/mod/garbagecollector/start.php @@ -49,6 +49,11 @@ $resulttext .= "\n"; + // Now, because we are nice, trigger a plugin hook to let other plugins do some GC + $returnvalue = true; + $period = get_plugin_setting('period','garbagecollector'); + $returnvalue = trigger_plugin_hook('system', 'gc', array('period' => $period)); + // Now we optimize all tables $tables = get_db_tables(); foreach ($tables as $table) { -- cgit v1.2.3