summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-12-29 16:10:40 +0300
committerAndrew Dolgov <[email protected]>2009-12-29 16:10:40 +0300
commitab197ae1de3b8691595582e091593c7294b6872f (patch)
tree7c5f7f57f226941a688e4562b992bd32b02ef4c0 /backend.php
parenta12eb9c3274d0c35b6c951bf992e8b992420fd92 (diff)
update ccache in catchupArticleById(); misc counter-related tweaks; add getArticleFeed()
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/backend.php b/backend.php
index cee8c26ce..b83c4ff2a 100644
--- a/backend.php
+++ b/backend.php
@@ -222,13 +222,14 @@
// in prefetch mode we only output requested cids, main article
// just gets marked as read (it already exists in client cache)
+ $feed_id = false;
+
if ($mode == "") {
outputArticleXML($link, $id, false);
} else if ($mode == "zoom") {
outputArticleXML($link, $id, false, true, true);
} else {
catchupArticleById($link, $id, 0);
- ccache_update($link, $feed_id, $_SESSION["uid"]);
}
if (!$_SESSION["bw_limit"]) {
@@ -241,7 +242,7 @@
// if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) {
- if (time() - $_SESSION["view:counters_stamp"] > 3 && $mode == "prefetch") {
+ if (time() - $_SESSION["view:counters_stamp"] > 5 && $mode == "prefetch") {
print "<counters>";
getAllCounters($link, $omode);
print "</counters>";
@@ -365,7 +366,7 @@
// }
if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop ||
- time() - $_SESSION["viewfeed:counters_stamp"] > 60) {
+ time() - $_SESSION["viewfeed:counters_stamp"] > 5) {
if (!$offset) {
print "<counters>";
getAllCounters($link, $omode, $feed);