mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-13 20:03:45 +02:00
Use the cache tags correctly.
This commit is contained in:
@@ -366,7 +366,7 @@ class NodesController extends Controller
|
||||
$node = Models\Node::findOrFail($id);
|
||||
|
||||
$token = str_random(32);
|
||||
Cache::put('NodeConfiguration:' . $token, $node->id, 5);
|
||||
Cache::tags(['Node:Configuration'])->put($token, $node->id, 5);
|
||||
|
||||
return response()->json(['token' => $token]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user