1
0
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:
Dag
2024-08-08 17:47:04 +02:00
committed by GitHub
parent 2acd415475
commit f358f1abec
8 changed files with 188 additions and 158 deletions

View File

@@ -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);
}