From 7bdf22a0d508e35dede053c35d9b1c1b30314a95 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 22 Nov 2020 14:56:38 +0000 Subject: [PATCH] Don't probe feeds so often --- src/Worker/OnePoll.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Worker/OnePoll.php b/src/Worker/OnePoll.php index b0e8460f29..73971a8b1b 100644 --- a/src/Worker/OnePoll.php +++ b/src/Worker/OnePoll.php @@ -54,7 +54,9 @@ class OnePoll return; } - if ($contact['network'] != Protocol::MAIL) { + // We never probe mail contacts since their probing demands a mail from the contact in the inbox. + // We don't probe feed accounts by default since they are polled in a higher frequency, but forced probes are okay. + if (!in_array($contact['network'], [Protocol::MAIL, Protocol::FEED]) || ($force && ($contact['network'] == Protocol::FEED))) { $success = Contact::updateFromProbe($contact_id); } else { $success = true;