diff options
author | Andrew Dolgov <[email protected]> | 2013-04-24 14:15:46 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-24 14:23:38 +0400 |
commit | 8cabc200d5f50327641c6c3ee615095f632afd87 (patch) | |
tree | fc6a9716e998761fbb085a78bd6ec4f1a52aacb6 /include/rssfuncs.php | |
parent | 6c0d41c644a77198d5b1c91dd63cc687779f4cf4 (diff) |
increase updstart locking interval to prevent concurrent updates; decrease batch size for the daemon
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index ac00a9408..f4fa18dc9 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -104,9 +104,9 @@ // Test if feed is currently being updated by another process. if (DB_TYPE == "pgsql") { - $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < NOW() - INTERVAL '5 minutes')"; + $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < NOW() - INTERVAL '10 minutes')"; } else { - $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < DATE_SUB(NOW(), INTERVAL 5 MINUTE))"; + $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < DATE_SUB(NOW(), INTERVAL 10 MINUTE))"; } // Test if there is a limit to number of updated feeds |