aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Poller.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-17 11:50:13 +0000
committerMario <mario@mariovavti.com>2022-11-17 11:50:13 +0000
commit0e6b27c9f46141c3ca92fc8dddc51d866cf5f3c9 (patch)
tree3f6e8bd535cd23e3bfe88a873ba432fad231d4cb /Zotlabs/Daemon/Poller.php
parent0e157e4e8b480b4a848a05e73aa11dfcd54dfd9b (diff)
downloadvolse-hubzilla-0e6b27c9f46141c3ca92fc8dddc51d866cf5f3c9.tar.gz
volse-hubzilla-0e6b27c9f46141c3ca92fc8dddc51d866cf5f3c9.tar.bz2
volse-hubzilla-0e6b27c9f46141c3ca92fc8dddc51d866cf5f3c9.zip
if a feed fails, do not update connected timestamp. attempt to poll feeds only once a day if we could not fetch it last time we tried
Diffstat (limited to 'Zotlabs/Daemon/Poller.php')
-rw-r--r--Zotlabs/Daemon/Poller.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Poller.php b/Zotlabs/Daemon/Poller.php
index 88213a7c9..702c940a3 100644
--- a/Zotlabs/Daemon/Poller.php
+++ b/Zotlabs/Daemon/Poller.php
@@ -93,7 +93,14 @@ class Poller {
$min = intval(get_config('system', 'minimum_feedcheck_minutes'));
if (!$min)
$min = 60;
+
+ if ($t !== $c) {
+ // if the last fetch failed only attempt fetch once a day
+ $min = 60 * 24;
+ }
+
$x = datetime_convert('UTC', 'UTC', "now - $min minutes");
+
if ($c < $x) {
Master::Summon(['Onepoll', $contact['abook_id']]);
if ($interval)