From fb9832bbd0b76da844721ac65d482851ef5764e5 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 17 Aug 2020 09:53:49 +0000 Subject: [PATCH] Poll twice a day when there had been posts in the last 7 days --- src/Protocol/Feed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index 917352793b..8a6725d19a 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -672,7 +672,7 @@ class Feed if (empty($priority)) { // Calculate the highest "posts per day" value - $max = 1; + $max = 0; foreach ($frequency as $entry) { if (($entry['count'] == 1) || ($entry['high'] == $entry['low'])) { continue; @@ -700,7 +700,7 @@ class Feed $priority = 5; // Poll every three hours } elseif ($max > 2) { $priority = 6; // Poll every six hours - } elseif ($max > 1) { + } elseif ($max > 0) { $priority = 7; // Poll twice a day } else { /// @todo In the future we could calculate the days between the posts to set even lower priorities