summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-09-25 20:34:53 +0400
committerAndrew Dolgov <[email protected]>2011-09-25 20:34:53 +0400
commit359fc686ddfc13dc1f9ee8127fd14a13a0ede4e8 (patch)
tree7a13f98f6e95dd74bfd5e0c880dc7c24609e6367 /functions.php
parent957425aa4147016ede2aba82ff0f876a895679f6 (diff)
force minimum update interval at 5 minutes to prevent request flood (refs #369)
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 93241fda3..4a28af4c1 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