Add support for filesystem caching, closes #993

This commit is contained in:
Dane Everitt 2018-03-01 18:46:59 -06:00
parent ab2973c4d1
commit 838b9a9093
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 5 additions and 11 deletions

View file

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