diff options
author | Andrew Dolgov <[email protected]> | 2013-08-02 14:06:18 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-08-02 14:06:18 +0400 |
commit | 8e47022036cdba907add2a375bf0c23a4043746f (patch) | |
tree | 7c4b602cfff9714ca5a6aa563fc4ece99dcaca4a | |
parent | 910592b49a86273a30150bfdb67d9b49409e32f2 (diff) |
add hook_house_keeping
-rw-r--r-- | classes/pluginhost.php | 1 | ||||
-rw-r--r-- | include/rssfuncs.php | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php index a1bd1b364..b7b852278 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -38,6 +38,7 @@ class PluginHost { const HOOK_PREFS_SAVE_FEED = 21; const HOOK_FETCH_FEED = 22; const HOOK_QUERY_HEADLINES = 23; + const HOOK_HOUSE_KEEPING = 24; const KIND_ALL = 1; const KIND_SYSTEM = 2; diff --git a/include/rssfuncs.php b/include/rssfuncs.php index c0d81c351..e6866182b 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1378,5 +1378,10 @@ $rc = cleanup_tags( 14, 50000); _debug("Cleaned $rc cached tags."); + + foreach ($pluginhost->get_hooks(PluginHost::HOOK_HOUSE_KEEPING) as $plugin) { + $plugin->hook_house_keeping(); + } + } ?> |