X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/c429cf78187e80deb63982a282a1c6889f30291a..refs/pull/3391/head:/app/Http/Controllers/StatusController.php diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php index 336e063ab..ab4f67d0a 100644 --- a/app/Http/Controllers/StatusController.php +++ b/app/Http/Controllers/StatusController.php @@ -20,9 +20,9 @@ class StatusController extends Controller }), 'cache' => $this->trueWithoutError(function () { $rand = Str::random(); - Cache::set('status_test', $rand); + Cache::add('status_test', $rand); - return Cache::get('status_test') === $rand; + return Cache::pull('status_test') === $rand; }), 'session' => $this->trueWithoutError(function () { $rand = Str::random();