rpc tweaks; viewfeed counters attachment changed
This commit is contained in:
parent
00fceabf61
commit
a06d0e5a8b
|
@ -337,11 +337,6 @@
|
||||||
|
|
||||||
if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info);
|
if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info);
|
||||||
|
|
||||||
$viewfeed_ctr_interval = 300;
|
|
||||||
|
|
||||||
if ($csync || $_SESSION["bw_limit"]) {
|
|
||||||
$viewfeed_ctr_interval = 60;
|
|
||||||
}
|
|
||||||
|
|
||||||
// if (get_pref($link, "SYNC_COUNTERS") ||
|
// if (get_pref($link, "SYNC_COUNTERS") ||
|
||||||
// time() - $_SESSION["get_all_counters_stamp"] > $viewfeed_ctr_interval) {
|
// time() - $_SESSION["get_all_counters_stamp"] > $viewfeed_ctr_interval) {
|
||||||
|
@ -350,11 +345,13 @@
|
||||||
// print "</counters>";
|
// print "</counters>";
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop) {
|
if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop ||
|
||||||
|
time() - $_SESSION["viewfeed:counters_stamp"] > 30) {
|
||||||
if (!$offset) {
|
if (!$offset) {
|
||||||
print "<counters>";
|
print "<counters>";
|
||||||
getAllCounters($link, $omode, $feed);
|
getAllCounters($link, $omode, $feed);
|
||||||
print "</counters>";
|
print "</counters>";
|
||||||
|
$_SESSION["viewfeed:counters_stamp"] = time();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -394,7 +394,8 @@ function feedlist_init() {
|
||||||
document.onmousemove = mouse_move_handler;
|
document.onmousemove = mouse_move_handler;
|
||||||
document.onmousedown = mouse_down_handler;
|
document.onmousedown = mouse_down_handler;
|
||||||
document.onmouseup = mouse_up_handler;
|
document.onmouseup = mouse_up_handler;
|
||||||
setTimeout("timeout()", 0);
|
|
||||||
|
setTimeout("timeout()", 1);
|
||||||
|
|
||||||
if (typeof correctPNG != 'undefined') {
|
if (typeof correctPNG != 'undefined') {
|
||||||
correctPNG();
|
correctPNG();
|
||||||
|
|
|
@ -142,26 +142,26 @@
|
||||||
|
|
||||||
print "<counters>";
|
print "<counters>";
|
||||||
|
|
||||||
$omode = $_GET["omode"];
|
|
||||||
|
|
||||||
if (!$omode) $omode = "tflc";
|
|
||||||
|
|
||||||
if (strchr($omode, "l")) getLabelCounters($link);
|
|
||||||
|
|
||||||
if (strchr($omode, "c")) {
|
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
|
||||||
getCategoryCounters($link);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($global_unread_caller != $global_unread) {
|
if ($global_unread_caller != $global_unread) {
|
||||||
|
|
||||||
|
$omode = $_GET["omode"];
|
||||||
|
|
||||||
|
if (!$omode) $omode = "tflc";
|
||||||
|
|
||||||
|
if (strchr($omode, "l")) getLabelCounters($link);
|
||||||
|
|
||||||
|
if (strchr($omode, "c")) {
|
||||||
|
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
||||||
|
getCategoryCounters($link);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (strchr($omode, "f")) getFeedCounters($link);
|
if (strchr($omode, "f")) getFeedCounters($link);
|
||||||
if (strchr($omode, "t")) getTagCounters($link);
|
if (strchr($omode, "t")) getTagCounters($link);
|
||||||
|
|
||||||
|
getGlobalCounters($link, $global_unread);
|
||||||
}
|
}
|
||||||
|
|
||||||
getGlobalCounters($link, $global_unread);
|
|
||||||
|
|
||||||
print "</counters>";
|
print "</counters>";
|
||||||
|
|
||||||
print_runtime_info($link);
|
print_runtime_info($link);
|
||||||
|
|
Loading…
Reference in New Issue