diff options
author | Andrew Dolgov <[email protected]> | 2007-05-15 07:19:48 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-05-15 07:19:48 +0100 |
commit | addb5836949e27cd89f5a9254a33b3ad41982843 (patch) | |
tree | 9be433777feccab264775d93fcf41eca5bb01eeb /backend.php | |
parent | 7289eacf91a2082bdc42123e0b81031a8b380f4c (diff) |
prefetch old articles when necessary
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 12 |
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>"; } |