diff options
author | 2022-07-05 13:20:01 +0200 | |
---|---|---|
committer | 2022-07-05 13:20:01 +0200 | |
commit | 321ec7c8c16211192ca6ef7515c8880832adbd22 (patch) | |
tree | 03b6c77a9a2e24ecfaf493ac6168b520b24dd337 /lib/BridgeAbstract.php | |
parent | 5b9b57965202165f4dfb501dd928ca9cfdd7d28b (diff) | |
download | rss-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.php | 4 |
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); |