]> git.wh0rd.org Git - tt-rss.git/commitdiff
offline: made synchronization less aggressive
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 29 Dec 2009 16:07:53 +0000 (19:07 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 29 Dec 2009 16:07:53 +0000 (19:07 +0300)
modules/backend-rpc.php

index 019368685d4738c3bd2c1f26f03cc9d1de7eba68..c9c367165dc243ed17b7f6cd17b0fb7d9eed78ce 100644 (file)
                        //$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;
 
                        if ($stage > 0) {
                                print "<articles>";
 
-                               $limit = 200;
+                               $limit = 10;
                                $skip = $limit*($stage-1);
 
                                print "<limit value=\"$limit\"/>";
                                        }
 
                                        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,