mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-11 11:04:36 +02:00
refactor: dont create multiple instances of the cache (#3504)
This commit is contained in:
@@ -190,9 +190,7 @@ class SpotifyBridge extends BridgeAbstract
|
||||
|
||||
private function getToken()
|
||||
{
|
||||
$cacheFactory = new CacheFactory();
|
||||
|
||||
$cache = $cacheFactory->create();
|
||||
$cache = RssBridge::getCache();
|
||||
$cache->setScope('SpotifyBridge');
|
||||
|
||||
$cacheKey = sprintf('%s:%s', $this->getInput('clientid'), $this->getInput('clientsecret'));
|
||||
|
Reference in New Issue
Block a user