more update_daemon work

This commit is contained in:
Andrew Dolgov 2006-02-11 15:01:11 +01:00
parent b329516240
commit 9d1ef64ea9
2 changed files with 9 additions and 4 deletions

View File

@ -703,6 +703,8 @@
if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") {
if ($subop == "forceUpdateAllFeeds" && ENABLE_FEED_CATS
update_all_feeds($link, $subop == "forceUpdateAllFeeds");
$omode = $_GET["omode"];

View File

@ -48,8 +48,11 @@
$upd_intl = get_pref($link, 'DEFAULT_UPDATE_INTERVAL', $user_id);
}
if ($fetch || (!$line["last_updated"] ||
time() - strtotime($line["last_updated"]) > ($upd_intl * 60))) {
# printf("%d ? %d\n", time() - strtotime($line["last_updated"]) > $upd_intl*60,
# $upd_intl*60);
if (!$line["last_updated"] ||
time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) {
print "Updating...\n";
@ -58,7 +61,7 @@
}
}
sleep(SLEEP_INTERVAL);
// sleep(SLEEP_INTERVAL);
db_close($link);