From: Andrew Dolgov Date: Fri, 2 Aug 2013 10:06:18 +0000 (+0400) Subject: add hook_house_keeping X-Git-Tag: 1.10~39 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8e47022036cdba907add2a375bf0c23a4043746f;p=tt-rss.git add hook_house_keeping --- diff --git a/classes/pluginhost.php b/classes/pluginhost.php index a1bd1b36..b7b85227 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 c0d81c35..e6866182 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(); + } + } ?>