Add support for filesystem caching, closes #993
This commit is contained in:
parent
ab2973c4d1
commit
838b9a9093
4 changed files with 5 additions and 11 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue