Updated status endpoint cache check to include a random component in the
key to avoid conflict during simultaneous checks.
For #4396
return DB::table('migrations')->count() > 0;
}),
'cache' => $this->trueWithoutError(function () {
- $rand = Str::random();
- Cache::add('status_test', $rand);
+ $rand = Str::random(12);
+ $key = "status_test_{$rand}";
+ Cache::add($key, $rand);
- return Cache::pull('status_test') === $rand;
+ return Cache::pull($key) === $rand;
}),
'session' => $this->trueWithoutError(function () {
$rand = Str::random();