mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 10:34:55 +02:00
fix: remove unnecessary calls to purgeCache (#3502)
This commit is contained in:
parent
965d7d44c5
commit
5e22459eb6
7 changed files with 22 additions and 19 deletions
|
@ -91,8 +91,9 @@ class DisplayAction implements ActionInterface
|
|||
|
||||
$cache = $cacheFactory->create();
|
||||
$cache->setScope('');
|
||||
$cache->purgeCache(86400);
|
||||
$cache->setKey($cache_params);
|
||||
// This cache purge will basically delete all cache items older than 24h, regardless of scope and key
|
||||
$cache->purgeCache(86400);
|
||||
|
||||
$items = [];
|
||||
$infos = [];
|
||||
|
@ -215,7 +216,7 @@ class DisplayAction implements ActionInterface
|
|||
$cache = $cacheFactory->create();
|
||||
$cache->setScope('error_reporting');
|
||||
$cache->setkey([$bridgeName . '_' . $code]);
|
||||
$cache->purgeCache(86400);
|
||||
|
||||
if ($report = $cache->loadData()) {
|
||||
$report = Json::decode($report);
|
||||
$report['time'] = time();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue