summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-22 08:11:50 +0100
committerAndrew Dolgov <[email protected]>2009-01-22 08:11:50 +0100
commit01299231d896d4cceee2c41ac5fb8ecf1e8429da (patch)
tree41a12e6557e5308d0082b5e602c6fef61c68d3b6 /functions.php
parent2610b6fc8b62f254645c476e4805d50266cef7ad (diff)
purge_feed: stop when purging is disabled for the feed (2)
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 8eaab14fd..f409ddea2 100644
--- a/functions.php
+++ b/functions.php
@@ -133,7 +133,11 @@
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;