aboutsummaryrefslogtreecommitdiff
path: root/lib/BridgeAbstract.php
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2022-07-05 13:20:01 +0200
committerGravatar GitHub <noreply@github.com> 2022-07-05 13:20:01 +0200
commit321ec7c8c16211192ca6ef7515c8880832adbd22 (patch)
tree03b6c77a9a2e24ecfaf493ac6168b520b24dd337 /lib/BridgeAbstract.php
parent5b9b57965202165f4dfb501dd928ca9cfdd7d28b (diff)
downloadrss-bridge-321ec7c8c16211192ca6ef7515c8880832adbd22.tar.gz
rss-bridge-321ec7c8c16211192ca6ef7515c8880832adbd22.tar.zst
rss-bridge-321ec7c8c16211192ca6ef7515c8880832adbd22.zip
refactor: move cache logic into the factory (#2884)
Diffstat (limited to 'lib/BridgeAbstract.php')
-rw-r--r--lib/BridgeAbstract.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/BridgeAbstract.php b/lib/BridgeAbstract.php
index c479f53e..de6cd906 100644
--- a/lib/BridgeAbstract.php
+++ b/lib/BridgeAbstract.php
@@ -407,7 +407,7 @@ abstract class BridgeAbstract implements BridgeInterface
{
$cacheFac = new CacheFactory();
- $cache = $cacheFac->create(Configuration::getConfig('cache', 'type'));
+ $cache = $cacheFac->create();
$cache->setScope(get_called_class());
$cache->setKey($key);
if ($cache->getTime() < time() - $duration) {
@@ -426,7 +426,7 @@ abstract class BridgeAbstract implements BridgeInterface
{
$cacheFac = new CacheFactory();
- $cache = $cacheFac->create(Configuration::getConfig('cache', 'type'));
+ $cache = $cacheFac->create();
$cache->setScope(get_called_class());
$cache->setKey($key);
$cache->saveData($value);