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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.');