purge_feed: stop when purging is disabled for the feed (2)

This commit is contained in:
Andrew Dolgov 2009-01-22 08:11:50 +01:00
parent 2610b6fc8b
commit 01299231d8
1 changed files with 5 additions and 1 deletions

View File

@ -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;