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

@ -202,10 +202,10 @@ class ServerController extends Controller
$this->authorize('download-files', $server);
$token = str_random(40);
Cache::tags(['Downloads', 'Downloads:Server:' . $server->uuid])->put('Download:' . $token, [
Cache::tags(['Server:Downloads'])->put($token, [
'server' => $server->uuid,
'path' => $file,
], 1);
], 5);
return redirect($server->node->scheme . '://' . $server->node->fqdn . ':' . $server->node->daemonListen . '/server/file/download/' . $token);
}