offline: made synchronization less aggressive
This commit is contained in:
parent
b4e75b2a25
commit
d94475164e
|
@ -595,6 +595,9 @@
|
||||||
//$unread_only = db_escape_string($_REQUEST["unread_only"]);
|
//$unread_only = db_escape_string($_REQUEST["unread_only"]);
|
||||||
//if (!$amount) $amount = 50;
|
//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;
|
$amount = 2000;
|
||||||
$unread_only = true;
|
$unread_only = true;
|
||||||
|
|
||||||
|
@ -731,7 +734,7 @@
|
||||||
if ($stage > 0) {
|
if ($stage > 0) {
|
||||||
print "<articles>";
|
print "<articles>";
|
||||||
|
|
||||||
$limit = 200;
|
$limit = 10;
|
||||||
$skip = $limit*($stage-1);
|
$skip = $limit*($stage-1);
|
||||||
|
|
||||||
print "<limit value=\"$limit\"/>";
|
print "<limit value=\"$limit\"/>";
|
||||||
|
@ -751,9 +754,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DB_TYPE == "pgsql") {
|
if (DB_TYPE == "pgsql") {
|
||||||
$date_qpart = "updated >= NOW() - INTERVAL '1 month' AND";
|
$date_qpart = "updated >= NOW() - INTERVAL '1 week' AND";
|
||||||
} else {
|
} 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,
|
$result = db_query($link,
|
||||||
|
|
Loading…
Reference in New Issue