1
0
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:
Andrew Dolgov
2007-05-15 07:19:48 +01:00
parent 7289eacf91
commit addb583694
3 changed files with 21 additions and 9 deletions

View File

@@ -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>";
}