From 525116d484a7a2589fc8ad891af3e14ff07a3724 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 Aug 2005 07:13:28 +0100 Subject: asynchronous feed updating --- backend.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'backend.php') 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 "

All feeds: Update"; + href=\"javascript:scheduleFeedUpdate()\">Update"; print " Mark as read

"; -- cgit v1.2.3