]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
prefetch old articles when necessary
[tt-rss.git] / backend.php
index b04b2619bc079f73901eaeefcc89ba370a62e1c2..f83b71d5e10dafc07130972f4385376061481599 100644 (file)
                // 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);
                }
 
                        }
                }
 
-               print "<counters>";
-               getAllCounters($link, $omode);
-               print "</counters>";
+               if ($mode != "prefetch_old") {
+                       print "<counters>";
+                       getAllCounters($link, $omode);
+                       print "</counters>";
+               }
 
                print "</reply>";
        }