diff options
Diffstat (limited to 'app/Controllers/feedController.php')
| -rw-r--r-- | app/Controllers/feedController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 97d68883c..4884b237f 100644 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -862,6 +862,9 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { if ($entryDAO->inTransaction()) { $entryDAO->commit(); } + if (rand(0, 30) === 1) { // Remove old cache once in a while + cleanCache(CLEANCACHE_HOURS); + } return [$nbUpdatedFeeds, $feed, $nbNewArticles, $feedsCacheToRefresh]; } |
