Don't use tagging, closes #3224

This commit is contained in:
Dane Everitt 2021-04-03 10:53:41 -07:00
parent a7b60c0f52
commit 45680cab47
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -42,9 +42,8 @@ class ResourceUtilizationController extends ClientApiController
*/
public function __invoke(GetServerRequest $request, Server $server): array
{
$stats = $this->cache
->tags(['resources'])
->remember($server->uuid, Carbon::now()->addSeconds(20), function () use ($server) {
$key = "resources:{$server->uuid}";
$stats = $this->cache->remember($key, Carbon::now()->addSeconds(20), function () use ($server) {
return $this->repository->setServer($server)->getDetails();
});