Use the cache tags correctly.

This commit is contained in:
Dane Everitt 2017-05-01 14:52:14 -04:00
parent cec5499ada
commit ae6b0f5c5e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 6 additions and 6 deletions

View file

@ -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]);
}