]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/StatusController.php
Added control-upon-access of the default favicon.ico file
[bookstack] / app / Http / Controllers / StatusController.php
index 336e063ab402680f7f3a8de49d3e095de29b4004..ab4f67d0a68628b9e60814f2572804d6a34c930a 100644 (file)
@@ -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();