Fix AdminStatService cache key, fixes #3612

This commit is contained in:
Daniel Supernault 2022-08-15 20:35:52 -06:00
parent 75fbd373c8
commit d1dbed8932
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -113,7 +113,7 @@ class AdminStatsService
protected static function additionalDataSummary() protected static function additionalDataSummary()
{ {
$ttl = now()->addHours(24); $ttl = now()->addHours(24);
return Cache::remember('admin:dashboard:home:data:v0:24hr', $ttl, function() { return Cache::remember('admin:dashboard:home:data-summary:v0:24hr', $ttl, function() {
return [ return [
'statuses' => PrettyNumber::convert(Status::count()), 'statuses' => PrettyNumber::convert(Status::count()),
'profiles' => PrettyNumber::convert(Profile::count()), 'profiles' => PrettyNumber::convert(Profile::count()),