mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:35:56 +00:00
prefetch old articles when necessary
This commit is contained in:
12
backend.php
12
backend.php
@@ -155,9 +155,9 @@
|
||||
// in prefetch mode we only output requested cids, main article
|
||||
// just gets marked as read (it already exists in client cache)
|
||||
|
||||
if ($mode != "prefetch") {
|
||||
if ($mode == "") {
|
||||
outputArticleXML($link, $id, $feed_id);
|
||||
} else {
|
||||
} else if ($mode == "prefetch") {
|
||||
catchupArticleById($link, $id, 0);
|
||||
}
|
||||
|
||||
@@ -167,9 +167,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
print "<counters>";
|
||||
getAllCounters($link, $omode);
|
||||
print "</counters>";
|
||||
if ($mode != "prefetch_old") {
|
||||
print "<counters>";
|
||||
getAllCounters($link, $omode);
|
||||
print "</counters>";
|
||||
}
|
||||
|
||||
print "</reply>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user