From 3c0d75f6c2c0fc80a9ea3bcc159b4ea4fa40937c Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 25 Oct 2024 17:37:00 +0200 Subject: [PATCH] Revert "bug #58661 [Cache] Initialize RedisAdapter cursor to 0 (thomas-hiron)" This reverts commit 61b8de4fb2e87232b5275231369564cbc192ba26, reversing changes made to ee6d61b080455815a819bf1e731329f5bb9aef3f. --- src/Symfony/Component/Cache/Traits/RedisTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Cache/Traits/RedisTrait.php b/src/Symfony/Component/Cache/Traits/RedisTrait.php index ea07acf08ac42..126f568112d3a 100644 --- a/src/Symfony/Component/Cache/Traits/RedisTrait.php +++ b/src/Symfony/Component/Cache/Traits/RedisTrait.php @@ -490,7 +490,7 @@ protected function doClear(string $namespace) 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])) {