From 8c3efd51ecd76f4e9ffeb111bbbe2c5862aa3bed Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 17 Nov 2019 13:17:21 +0300 Subject: reset domain hit quota on feed update start --- include/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 750707626..c6d33d2fd 100644 --- a/include/functions.php +++ b/include/functions.php @@ -164,6 +164,12 @@ Debug::log($msg); } + function reset_fetch_domain_quota() { + global $fetch_domain_hits; + + $fetch_domain_hits = []; + } + // TODO: max_size currently only works for CURL transfers // TODO: multiple-argument way is deprecated, first parameter is a hash now function fetch_file_contents($options /* previously: 0: $url , 1: $type = false, 2: $login = false, 3: $pass = false, -- cgit v1.2.3-54-g00ecf