8000 Revert "bug #58661 [Cache] Initialize RedisAdapter cursor to 0 (thoma… · symfony/cache@12b03e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 12b03e3

Browse files
Revert "bug #58661 [Cache] Initialize RedisAdapter cursor to 0 (thomas-hiron)"
This reverts commit 61b8de4fb2e87232b5275231369564cbc192ba26, reversing changes made to ee6d61b080455815a819bf1e731329f5bb9aef3f.
1 parent e135eb8 commit 12b03e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Traits/RedisTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ protected function doClear(string $namespace)
490490
continue;
491491
}
492492

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

0 commit comments

Comments
 (0)
0