From ab954dffad6886d613a4f973d3b70b3361306f09 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Jan 2009 08:22:57 +0100 Subject: [PATCH] purge_feed: properly pass owner_uid to ccache_update --- functions.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/functions.php b/functions.php index f409ddea..e7e7d8ca 100644 --- a/functions.php +++ b/functions.php @@ -134,11 +134,6 @@ if (!$purge_interval) $purge_interval = feed_purge_interval($link, $feed_id); - if ($purge_interval == -1 || !$purge_interval) { - ccache_update($link, $feed_id, $owner_uid); - return; - } - $rows = -1; $result = db_query($link, @@ -150,6 +145,13 @@ $owner_uid = db_fetch_result($result, 0, "owner_uid"); } + if ($purge_interval == -1 || !$purge_interval) { + if ($owner_uid) { + ccache_update($link, $feed_id, $owner_uid); + } + return; + } + if (!$owner_uid) return; if (FORCE_ARTICLE_PURGE == 0) { -- 2.39.5