From 01299231d896d4cceee2c41ac5fb8ecf1e8429da Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Jan 2009 08:11:50 +0100 Subject: [PATCH] purge_feed: stop when purging is disabled for the feed (2) --- functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;