summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-12-29 19:07:53 +0300
committerAndrew Dolgov <[email protected]>2009-12-29 19:07:53 +0300
commitd94475164e544fd2315e6f931fec4b581e27d49c (patch)
tree81ae51699f6f440bc4bf198f9e92fdba1640d41f
parentb4e75b2a25d0a30d77b2160c8195835c9816cfe0 (diff)
offline: made synchronization less aggressive
-rw-r--r--modules/backend-rpc.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 019368685..c9c367165 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -595,6 +595,9 @@
//$unread_only = db_escape_string($_REQUEST["unread_only"]);
//if (!$amount) $amount = 50;
+ /* Amount is not used by the frontend offline.js anymore, it goes by
+ * date_qpart below + cidb/cidt IDs */
+
$amount = 2000;
$unread_only = true;
@@ -731,7 +734,7 @@
if ($stage > 0) {
print "<articles>";
- $limit = 200;
+ $limit = 10;
$skip = $limit*($stage-1);
print "<limit value=\"$limit\"/>";
@@ -751,9 +754,9 @@
}
if (DB_TYPE == "pgsql") {
- $date_qpart = "updated >= NOW() - INTERVAL '1 month' AND";
+ $date_qpart = "updated >= NOW() - INTERVAL '1 week' AND";
} else {
- $date_qpart = "updated >= DATE_SUB(NOW(), INTERVAL 1 MONTH) AND";
+ $date_qpart = "updated >= DATE_SUB(NOW(), INTERVAL 1 WEEK) AND";
}
$result = db_query($link,