diff options
author | Alexandre Alapetite <alexandre@alapetite.fr> | 2024-07-21 14:54:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-21 14:54:34 +0200 |
commit | 0eeac4a669e46fb6521ae1765b23656c9afc43de (patch) | |
tree | 7c5a08b80b628f855b11c8850aa993c0b509feb1 /cli | |
parent | 47b5e40e7240b5ccb0d0b6c54e0a958243689c83 (diff) | |
download | freshrss-0eeac4a669e46fb6521ae1765b23656c9afc43de.tar.gz freshrss-0eeac4a669e46fb6521ae1765b23656c9afc43de.zip |
Revisit keepMaxUnreads (#6632)
* Revisit keepMaxUnreads
Again, follow-up of https://github.com/FreshRSS/FreshRSS/pull/5905
fix https://github.com/FreshRSS/FreshRSS/issues/6620
* Refactoring to address buggy cases
* Fix minor test
Diffstat (limited to 'cli')
-rwxr-xr-x | cli/actualize-user.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/actualize-user.php b/cli/actualize-user.php index c07cf6d0e..29514769b 100755 --- a/cli/actualize-user.php +++ b/cli/actualize-user.php @@ -29,6 +29,9 @@ $databaseDAO->minorDbMaintenance(); Minz_ExtensionManager::callHookVoid('freshrss_user_maintenance'); FreshRSS_feed_Controller::commitNewEntries(); +$feedDAO = FreshRSS_Factory::createFeedDao(); +$feedDAO->updateCachedValues(); + $result = FreshRSS_category_Controller::refreshDynamicOpmls(); if (!empty($result['errors'])) { $errors = $result['errors']; @@ -39,10 +42,7 @@ if (!empty($result['successes'])) { echo "FreshRSS refreshed $successes dynamic OPMLs for $username\n"; } -[$nbUpdatedFeeds, , $nbNewArticles] = FreshRSS_feed_Controller::actualizeFeeds(); -if ($nbNewArticles > 0) { - FreshRSS_feed_Controller::commitNewEntries(); -} +[$nbUpdatedFeeds, , $nbNewArticles] = FreshRSS_feed_Controller::actualizeFeedsAndCommit(); echo "FreshRSS actualized $nbUpdatedFeeds feeds for $username ($nbNewArticles new articles)\n"; |