diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-12-20 16:27:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-20 16:27:01 +0300 |
commit | 40f37fc9ae877519408d5808d50c2fb863e89fca (patch) | |
tree | b00541b2172a165827b5140ea17db3fdfdf86920 | |
parent | 48b29b820afd46012d694a2675473ebdfc6b8b18 (diff) | |
parent | 890e59566bb7deda1aa37eab01e05f0e065fc852 (diff) |
fix cache set typo (#742)
fix cache set typo
-rw-r--r-- | lib/Service/FederationService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/FederationService.php b/lib/Service/FederationService.php index cd42c711..665cbe1e 100644 --- a/lib/Service/FederationService.php +++ b/lib/Service/FederationService.php @@ -73,11 +73,11 @@ class FederationService { $response = $client->get($remote . '/ocs/v2.php/apps/richdocuments/api/v1/federation?format=json', ['timeout' => 5]); $data = \json_decode($response->getBody(), true); $remoteCollabora = $data['ocs']['data']['wopi_url']; - $this->cache->get('richdocuments_remote/' . $remote, $remoteCollabora, 3600); + $this->cache->set('richdocuments_remote/' . $remote, $remoteCollabora, 3600); return $remoteCollabora; } catch (\Throwable $e) { $this->logger->info('Unable to determine collabora URL of remote server ' . $remote); - $this->cache->get('richdocuments_remote/' . $remote, '', 300); + $this->cache->set('richdocuments_remote/' . $remote, '', 300); } return ''; } |