]> git.wh0rd.org Git - tt-rss.git/commitdiff
add hook_house_keeping
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 2 Aug 2013 10:06:18 +0000 (14:06 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 2 Aug 2013 10:06:18 +0000 (14:06 +0400)
classes/pluginhost.php
include/rssfuncs.php

index a1bd1b36400a195c341e3399be5c7ba5fe8907fd..b7b852278e3b6bdc16e7df264b104eebac521dcb 100644 (file)
@@ -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;
index c0d81c351a2fb76ba40351cc08d3d29402fd55ac..e6866182bb329c3445f14f17c41c32b5b603629e 100644 (file)
                $rc = cleanup_tags( 14, 50000);
 
                _debug("Cleaned $rc cached tags.");
+
+               foreach ($pluginhost->get_hooks(PluginHost::HOOK_HOUSE_KEEPING) as $plugin) {
+                       $plugin->hook_house_keeping();
+               }
+
        }
 ?>