mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 03:54:04 +02:00
fix: mastodon, cache tweaks, docs (#3661)
* cache tweaks * docs * fix(mastodon): type bug
This commit is contained in:
@@ -664,7 +664,7 @@ class ItakuBridge extends BridgeAbstract
|
||||
// Debug::log($url);
|
||||
if ($getJSON) { //get JSON object
|
||||
if ($cache) {
|
||||
$data = $this->loadCacheValue($url, 86400); // 24 hours
|
||||
$data = $this->loadCacheValue($url);
|
||||
if (is_null($data)) {
|
||||
$data = getContents($url, $httpHeaders, $curlOptions) or returnServerError("Could not load $url");
|
||||
$this->saveCacheValue($url, $data);
|
||||
|
Reference in New Issue
Block a user