mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-11 19:03:46 +02:00
Add support for filesystem caching, closes #993
This commit is contained in:
@@ -366,7 +366,7 @@ class NodesController extends Controller
|
||||
public function setToken(Node $node)
|
||||
{
|
||||
$token = bin2hex(random_bytes(16));
|
||||
$this->cache->tags(['Node:Configuration'])->put($token, $node->id, 5);
|
||||
$this->cache->put('Node:Configuration:' . $token, $node->id, 5);
|
||||
|
||||
return response()->json(['token' => $token]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user