diff --git a/app/Console/Commands/CleanupRedis.php b/app/Console/Commands/CleanupRedis.php index 9cbe221bf..f6a2de75b 100644 --- a/app/Console/Commands/CleanupRedis.php +++ b/app/Console/Commands/CleanupRedis.php @@ -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.');