summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-05-15 07:19:48 +0100
committerAndrew Dolgov <[email protected]>2007-05-15 07:19:48 +0100
commitaddb5836949e27cd89f5a9254a33b3ad41982843 (patch)
tree9be433777feccab264775d93fcf41eca5bb01eeb /backend.php
parent7289eacf91a2082bdc42123e0b81031a8b380f4c (diff)
prefetch old articles when necessary
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/backend.php b/backend.php
index b04b2619b..f83b71d5e 100644
--- a/backend.php
+++ b/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>";
}