1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 02:31:29 +00:00

individual feed updater stub for scheduler mode

This commit is contained in:
Andrew Dolgov
2006-02-11 15:13:23 +01:00
parent cd907b7cbf
commit 1f4ad53c41
2 changed files with 50 additions and 34 deletions

View File

@@ -705,10 +705,13 @@
if (ENABLE_UPDATE_SCHEDULER) {
// FIXME schedule update
// FIXME schedule new update entry (with rate limit check)
} else {
update_all_feeds($link, $subop == "forceUpdateAllFeeds");
update_all_feeds($link, $subop == "forceUpdateAllFeeds");
}
if (!(ENABLE_UPDATE_SCHEDULER && $subop == "forceUpdateAllFeeds")) {
$omode = $_GET["omode"];
@@ -1013,13 +1016,15 @@
if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) {
$tmp_result = db_query($link, "SELECT feed_url FROM ttrss_feeds
WHERE id = '$feed'");
$feed_url = db_fetch_result($tmp_result, 0, "feed_url");
update_rss_feed($link, $feed_url, $feed);
if (ENABLE_UPDATE_SCHEDULER) {
// FIXME Schedule new feed entry for updating (w/rate limiting)
} else {
$tmp_result = db_query($link, "SELECT feed_url FROM ttrss_feeds
WHERE id = '$feed'");
$feed_url = db_fetch_result($tmp_result, 0, "feed_url");
update_rss_feed($link, $feed_url, $feed);
}
}
if ($subop == "MarkAllRead") {