summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-22 08:22:57 +0100
committerAndrew Dolgov <[email protected]>2009-01-22 08:22:57 +0100
commitab954dffad6886d613a4f973d3b70b3361306f09 (patch)
tree3d8d2887ad1109041d92caf7bdc4cdb727bf67ea /functions.php
parent01299231d896d4cceee2c41ac5fb8ecf1e8429da (diff)
purge_feed: properly pass owner_uid to ccache_update
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/functions.php b/functions.php
index f409ddea2..e7e7d8ca5 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) {