diff options
| author | 2025-08-15 09:37:00 +0200 | |
|---|---|---|
| committer | 2025-08-15 09:37:00 +0200 | |
| commit | ade9ba88178537a2181c9f27d23c69d6dedad34b (patch) | |
| tree | c9acb1675560d61e0e2f7f1706f5625b8a334072 /lib/lib_rss.php | |
| parent | ddb9e91bf2b16aa6f31ebdb3a2119056e971ba96 (diff) | |
Call cleanCache when refreshing feeds (#7827)
Otherwise, it is only called when calling `httpGet()` which can be rare for users not using Web Scraping.
https://github.com/FreshRSS/FreshRSS/discussions/7784#discussioncomment-14109207
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 59e7abba0..c0fe17708 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -557,7 +557,7 @@ function httpGet(string $url, string $cachePath, string $type = 'html', array $a } } - if (mt_rand(0, 30) === 1) { // Remove old entries once in a while + if (rand(0, 30) === 1) { // Remove old cache once in a while cleanCache(CLEANCACHE_HOURS); } |
