mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-05-03 05:06:05 +02:00
Don't use tagging, closes #3224
This commit is contained in:
@@ -42,9 +42,8 @@ class ResourceUtilizationController extends ClientApiController
|
|||||||
*/
|
*/
|
||||||
public function __invoke(GetServerRequest $request, Server $server): array
|
public function __invoke(GetServerRequest $request, Server $server): array
|
||||||
{
|
{
|
||||||
$stats = $this->cache
|
$key = "resources:{$server->uuid}";
|
||||||
->tags(['resources'])
|
$stats = $this->cache->remember($key, Carbon::now()->addSeconds(20), function () use ($server) {
|
||||||
->remember($server->uuid, Carbon::now()->addSeconds(20), function () use ($server) {
|
|
||||||
return $this->repository->setServer($server)->getDetails();
|
return $this->repository->setServer($server)->getDetails();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user