mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-30 03:20:30 +02:00
fix: extract duplicate config loading (#4242)
Also fix a problem with bin/cache-prune and FileCache and its enable_purge option
This commit is contained in:
@@ -89,7 +89,9 @@ class DisplayAction implements ActionInterface
|
||||
$this->cache->set($cacheKey, $response, 60 * 15);
|
||||
}
|
||||
|
||||
if (rand(1, 100) === 2) {
|
||||
// For 1% of requests, prune cache
|
||||
if (rand(1, 100) === 1) {
|
||||
// This might be resource intensive!
|
||||
$this->cache->prune();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user