aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-06-25 11:15:51 +0200
committerGravatar GitHub <noreply@github.com> 2022-06-25 11:15:51 +0200
commitd785ddde2a00a9eadd38c45c528f2d2f6d1c356a (patch)
tree8583fb1a85a4a3da11a55c50fdbb0c521054d4c7 /app/Controllers/feedController.php
parent07a52137a975978dab762ac8276fd85919497013 (diff)
New option to automatically mark as read gone articles (#4426)
* New option to automatically mark as read gone articles Option to automatically and immediately mark as read entries / articles that are no longer provided in their upstream RSS / ATOM / XPath feed * Reduce SQL queries Optimisation: Perform cache update only once
Diffstat (limited to 'app/Controllers/feedController.php')
-rwxr-xr-xapp/Controllers/feedController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index dd87650bc..fe5641642 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -503,10 +503,11 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
}
$feedDAO->updateLastUpdate($feed->id(), false, $mtime);
+ $needFeedCacheRefresh |= ($feed->keepMaxUnread() != false);
+ $needFeedCacheRefresh |= ($feed->markAsReadUponGone() != false);
if ($needFeedCacheRefresh) {
$feedDAO->updateCachedValues($feed->id());
}
- $feed->keepMaxUnread();
if ($entryDAO->inTransaction()) {
$entryDAO->commit();
}