Use the cache tags correctly.
This commit is contained in:
parent
cec5499ada
commit
ae6b0f5c5e
3 changed files with 6 additions and 6 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue