Skip to content

Commit 45680ca

Browse files
committed
Don't use tagging, closes pterodactyl#3224
1 parent a7b60c0 commit 45680ca

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/Http/Controllers/Api/Client/Servers/ResourceUtilizationController.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ public function __construct(Repository $cache, DaemonServerRepository $repositor
4242
*/
4343
public function __invoke(GetServerRequest $request, Server $server): array
4444
{
45-
$stats = $this->cache
46-
->tags(['resources'])
47-
->remember($server->uuid, Carbon::now()->addSeconds(20), function () use ($server) {
48-
return $this->repository->setServer($server)->getDetails();
49-
});
45+
$key = "resources:{$server->uuid}";
46+
$stats = $this->cache->remember($key, Carbon::now()->addSeconds(20), function () use ($server) {
47+
return $this->repository->setServer($server)->getDetails();
48+
});
5049

5150
return $this->fractal->item($stats)
5251
->transformWith($this->getTransformer(StatsTransformer::class))

0 commit comments

Comments
 (0)