Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  Revert "bug symfony#58661 [Cache] Initialize RedisAdapter cursor to 0 (thomas-hiron)"
  • Loading branch information
nicolas-grekas committed Oct 25, 2024
2 parents c4894f2 + ab60cbf commit 4172c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Cache/Traits/RedisTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ protected function doClear(string $namespace): bool
continue;
}

$cursor = 0;
$cursor = null;
do {
$keys = $host instanceof \Predis\ClientInterface ? $host->scan($cursor, 'MATCH', $pattern, 'COUNT', 1000) : $host->scan($cursor, $pattern, 1000);
if (isset($keys[1]) && \is_array($keys[1])) {
Expand Down

0 comments on commit 4172c0c

Please sign in to comment.