1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-15 04:54:01 +02:00

refactor: move cache logic into the factory (#2884)

This commit is contained in:
Dag
2022-07-05 13:20:01 +02:00
committed by GitHub
parent 5b9b579652
commit 321ec7c8c1
10 changed files with 16 additions and 15 deletions

View File

@@ -96,7 +96,7 @@ class InstagramBridge extends BridgeAbstract
$cacheFac = new CacheFactory();
$cache = $cacheFac->create(Configuration::getConfig('cache', 'type'));
$cache = $cacheFac->create();
$cache->setScope(get_called_class());
$cache->setKey([$username]);
$key = $cache->loadData();