mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-07-19 11:33:11 -04:00
Fix entry->lastSeen in case of feed errors (#8646)
* Fix entry->lastSeen in case of feed errors Fix https://github.com/FreshRSS/FreshRSS/issues/8643 Fix lastSeen and feed's lastUpdate going out of sync Previous related PRs: * https://github.com/FreshRSS/FreshRSS/pull/5404 * https://github.com/FreshRSS/FreshRSS/pull/5382 * https://github.com/FreshRSS/FreshRSS/pull/5315 * Minor uneeded change
This commit is contained in:
committed by
GitHub
parent
b523cef71b
commit
3fac1bdf20
@@ -268,6 +268,7 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController {
|
||||
}
|
||||
|
||||
$databaseDAO = FreshRSS_Factory::createDatabaseDAO();
|
||||
$databaseDAO->minorDbMaintenance();
|
||||
$databaseDAO->optimize();
|
||||
|
||||
$feedDAO = FreshRSS_Factory::createFeedDao();
|
||||
@@ -295,6 +296,9 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController {
|
||||
@set_time_limit(300);
|
||||
}
|
||||
|
||||
$databaseDAO = FreshRSS_Factory::createDatabaseDAO();
|
||||
$databaseDAO->minorDbMaintenance();
|
||||
|
||||
$feedDAO = FreshRSS_Factory::createFeedDao();
|
||||
$feeds = $feedDAO->listFeeds();
|
||||
$nb_total = 0;
|
||||
@@ -310,9 +314,6 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController {
|
||||
$feedDAO->updateCachedValues();
|
||||
$feedDAO->commit();
|
||||
|
||||
$databaseDAO = FreshRSS_Factory::createDatabaseDAO();
|
||||
$databaseDAO->minorDbMaintenance();
|
||||
|
||||
invalidateHttpCache();
|
||||
Minz_Request::good(
|
||||
_t('feedback.sub.purge_completed', $nb_total),
|
||||
|
||||
Reference in New Issue
Block a user