1
0
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:
Dag
2023-09-10 23:35:40 +02:00
committed by GitHub
parent 4b9f6f7e53
commit 3178deb5a8
4 changed files with 19 additions and 5 deletions

View File

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