if ($_REQUEST["debug"]) $timing_info = print_checkpoint("20", $timing_info);
- /* if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop || !$offset) {
+ if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop) {
print "<counters><![CDATA[";
print json_encode(getAllCounters($link, $omode, $feed));
print "]]></counters>";
- } */
+ }
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("30", $timing_info);
}
}
- function catchup_feed($link, $feed, $cat_view, $owner_uid) {
+ function catchup_feed($link, $feed, $cat_view, $owner_uid = false) {
if (!$owner_uid) $owner_uid = $_SESSION['uid'];
} else {
console.log("no cached articles received");
}
-
- request_counters();
+
+ if (counters)
+ parse_counters(counters);
+ else
+ request_counters();
if (runtime_info) {
parse_runtime_info(runtime_info[0]);