diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-31 11:08:01 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-31 11:08:01 +0000 |
commit | 372380c8658eace26a6f9c1a6dccca1f94edbe2e (patch) | |
tree | f7aee83f9214e9f1c416346c7ac1c481e80b1231 | |
parent | f87a44b08f5ec9c4113d213bf6c80ccb52e3094f (diff) | |
download | elgg-372380c8658eace26a6f9c1a6dccca1f94edbe2e.tar.gz elgg-372380c8658eace26a6f9c1a6dccca1f94edbe2e.tar.bz2 |
Added system, gc plugin hook to garbage collector
git-svn-id: https://code.elgg.org/elgg/trunk@2371 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/garbagecollector/start.php | 5 |
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) { |