Fixed bad caching

This commit is contained in:
Graham Campbell
2016-05-29 19:20:56 +01:00
parent fb75ad6902
commit 24df32e9a9

View File

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