mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-13 19:07:11 -04:00
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
This commit is contained in:
committed by
GitHub
parent
07a52137a9
commit
d785ddde2a
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user