From 24df32e9a9a3d4553e579126e83538c1208b3c93 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 29 May 2016 19:20:56 +0100 Subject: [PATCH] Fixed bad caching --- app/Integrations/Credits.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Integrations/Credits.php b/app/Integrations/Credits.php index 4a65dab2..3056af07 100644 --- a/app/Integrations/Credits.php +++ b/app/Integrations/Credits.php @@ -58,7 +58,7 @@ class Credits */ public function latest() { - return $this->cache->remember('version', 2880, function () { + return $this->cache->remember('credits', 2880, function () { return json_decode((new Client())->get($this->url, [ 'headers' => ['Accept' => 'application/json', 'User-Agent' => defined('CACHET_VERSION') ? 'cachet/'.constant('CACHET_VERSION') : 'cachet'], ])->getBody(), true);