purge_feed: properly pass owner_uid to ccache_update

This commit is contained in:
Andrew Dolgov 2009-01-22 08:22:57 +01:00
parent 01299231d8
commit ab954dffad
1 changed files with 7 additions and 5 deletions

View File

@ -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) {