From addb5836949e27cd89f5a9254a33b3ad41982843 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 15 May 2007 07:19:48 +0100 Subject: prefetch old articles when necessary --- backend.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'backend.php') 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 ""; - getAllCounters($link, $omode); - print ""; + if ($mode != "prefetch_old") { + print ""; + getAllCounters($link, $omode); + print ""; + } print ""; } -- cgit v1.2.3-54-g00ecf