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

refactor: logger (#3678)

This commit is contained in:
Dag
2023-09-21 22:05:55 +02:00
committed by GitHub
parent 360f953be8
commit 7329b83cc0
30 changed files with 297 additions and 338 deletions

View File

@@ -98,9 +98,8 @@ class InstagramBridge extends BridgeAbstract
return $username;
}
$cache = RssBridge::getCache();
$cacheKey = 'InstagramBridge_' . $username;
$pk = $cache->get($cacheKey);
$pk = $this->cache->get($cacheKey);
if (!$pk) {
$data = $this->getContents(self::URI . 'web/search/topsearch/?query=' . $username);
@@ -112,7 +111,7 @@ class InstagramBridge extends BridgeAbstract
if (!$pk) {
returnServerError('Unable to find username in search result.');
}
$cache->set($cacheKey, $pk);
$this->cache->set($cacheKey, $pk);
}
return $pk;
}