Update app/Console/Commands/CleanupRedis.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
2b3892beee
commit
9f87d499dd
1 changed files with 1 additions and 2 deletions
|
|
@ -294,11 +294,10 @@ private function cleanupCacheLocks(bool $dryRun): int
|
|||
|
||||
foreach ($allKeys as $key) {
|
||||
// Match cache lock keys: they contain 'laravel-queue-overlap'
|
||||
if (str_contains($key, 'laravel-queue-overlap')) {
|
||||
if (preg_match('/overlap/i', $key)) {
|
||||
$lockKeys[] = $key;
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($lockKeys)) {
|
||||
$this->info(' No cache locks found.');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue