From: Andrew Dolgov Date: Sun, 25 Sep 2011 16:34:53 +0000 (+0400) Subject: force minimum update interval at 5 minutes to prevent request flood (refs #369) X-Git-Tag: 1.5.6~15 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=359fc686ddfc13dc1f9ee8127fd14a13a0ede4e8;p=tt-rss.git force minimum update interval at 5 minutes to prevent request flood (refs #369) --- diff --git a/functions.php b/functions.php index 93241fda..4a28af4c 100644 --- a/functions.php +++ b/functions.php @@ -5793,9 +5793,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 '120 seconds')"; + $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < NOW() - INTERVAL '5 minutes')"; } else { - $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < DATE_SUB(NOW(), INTERVAL 120 SECOND))"; + $updstart_thresh_qpart = "AND (ttrss_feeds.last_update_started IS NULL OR ttrss_feeds.last_update_started < DATE_SUB(NOW(), INTERVAL 5 MINUTE))"; } // Test if there is a limit to number of updated feeds