1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 21:45:55 +00:00

reset domain hit quota on feed update start

This commit is contained in:
Andrew Dolgov
2019-11-17 13:17:21 +03:00
parent cd4b7f1988
commit 8c3efd51ec
2 changed files with 8 additions and 0 deletions

View File

@@ -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,