mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-25 17:31:25 +02:00
refactor: loadCacheValue/saveCacheValue (#4205)
This commit is contained in:
@@ -667,7 +667,7 @@ class ItakuBridge extends BridgeAbstract
|
||||
if ($getJSON) { //get JSON object
|
||||
if ($cache) {
|
||||
$data = $this->loadCacheValue($url);
|
||||
if (is_null($data)) {
|
||||
if (!$data) {
|
||||
$data = getContents($url, $httpHeaders, $curlOptions);
|
||||
$this->saveCacheValue($url, $data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user