purge_feed: properly pass owner_uid to ccache_update
This commit is contained in:
parent
01299231d8
commit
ab954dffad
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue