From 890e59566bb7deda1aa37eab01e05f0e065fc852 Mon Sep 17 00:00:00 2001 From: Pavel Krasikov Date: Fri, 20 Dec 2019 13:59:55 +0300 Subject: fix cache set typo Signed-off-by: Pavel Krasikov --- lib/Service/FederationService.php | 4 ++-- 1 file 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 ''; } -- cgit v1.2.3