Update app/Console/Commands/CleanupRedis.php

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Andras Bacsai
2025-10-24 13:20:24 +02:00
committed by GitHub
parent 2b3892beee
commit 9f87d499dd

View File

@@ -294,11 +294,10 @@ class CleanupRedis extends Command
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.');