From 9f87d499dd36779f1d8e0b0a39cbebd8bfa3d53d Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 24 Oct 2025 13:20:24 +0200 Subject: [PATCH] Update app/Console/Commands/CleanupRedis.php Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- app/Console/Commands/CleanupRedis.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.');