diff options
author | Andrew Dolgov <[email protected]> | 2005-08-23 07:13:28 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-08-23 07:13:28 +0100 |
commit | 525116d484a7a2589fc8ad891af3e14ff07a3724 (patch) | |
tree | 60f624747ee71198340040086b87c5503f0054f1 /backend.php | |
parent | b82af8c382441bddfb9fccf5828ff7e7c61682ac (diff) |
asynchronous feed updating
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/backend.php b/backend.php index 012396182..0a91a6412 100644 --- a/backend.php +++ b/backend.php @@ -17,11 +17,13 @@ $subop = $_GET["subop"]; - if ($subop == "forceUpdateAll") { - update_all_feeds($link, true); + if ($subop == "forceUpdateAllFeeds") { + print "[rpc] forceUpdateAll"; + update_all_feeds($link, true); } - if ($subop == "updateAll") { + if ($subop == "updateAllFeeds") { + print "[rpc] updateAll"; update_all_feeds($link, false); } @@ -49,7 +51,7 @@ pg_query("UPDATE ttrss_entries SET last_read = NOW(),unread = false"); } - update_all_feeds($link, $fetch); + // update_all_feeds($link, $fetch); $result = pg_query("SELECT *, (SELECT count(id) FROM ttrss_entries @@ -101,7 +103,7 @@ print "<p align=\"center\">All feeds: <a class=\"button\" - href=\"javascript:updateFeedList(false,true)\">Update</a>"; + href=\"javascript:scheduleFeedUpdate()\">Update</a>"; print " <a class=\"button\" href=\"javascript:catchupAllFeeds()\">Mark as read</a></p>"; |