From 9d1ef64ea94247e47d0283e83ff7d497f26fbe9d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 11 Feb 2006 15:01:11 +0100 Subject: [PATCH] more update_daemon work --- backend.php | 4 +++- update_daemon.php | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/backend.php b/backend.php index 55f2fa99..5e93c37f 100644 --- a/backend.php +++ b/backend.php @@ -702,7 +702,9 @@ } if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") { - + + if ($subop == "forceUpdateAllFeeds" && ENABLE_FEED_CATS + update_all_feeds($link, $subop == "forceUpdateAllFeeds"); $omode = $_GET["omode"]; diff --git a/update_daemon.php b/update_daemon.php index 4f30cb53..0e5424d4 100644 --- a/update_daemon.php +++ b/update_daemon.php @@ -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); -- 2.39.5