]> git.wh0rd.org Git - tt-rss.git/commitdiff
purge_feed: stop when purging is disabled for the feed (2)
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 22 Jan 2009 07:11:50 +0000 (08:11 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 22 Jan 2009 07:11:50 +0000 (08:11 +0100)
functions.php

index 8eaab14fdbc714b5d6345d0867c2ca40b1cf6549..f409ddea2207774191f01b40c2c329a65ad8fe80 100644 (file)
        function purge_feed($link, $feed_id, $purge_interval, $debug = false) {
 
                if (!$purge_interval) $purge_interval = feed_purge_interval($link, $feed_id);
-               if ($purge_interval == -1 || !$purge_interval) return;
+               
+               if ($purge_interval == -1 || !$purge_interval) {
+                       ccache_update($link, $feed_id, $owner_uid);
+                       return;
+               }
 
                $rows = -1;