aboutsummaryrefslogtreecommitdiff
path: root/mod/garbagecollector/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/garbagecollector/start.php')
-rw-r--r--mod/garbagecollector/start.php5
1 files changed, 5 insertions, 0 deletions
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) {