Skip to content

Commit eaa513b

Browse files
committed
late night
1 parent 266acb5 commit eaa513b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Cache/Engine/RedisClusterEngine.php

+1-9
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function clear($check)
8484
$iterator = null;
8585

8686
do {
87-
$keys = $this->_Redis->scan($iterator, $m, 'tpd_g_*');
87+
$keys = $this->_Redis->scan($iterator, $m, $this->_config['prefix'] . '*');
8888

8989
if ($keys === false) {
9090
continue;
@@ -98,14 +98,6 @@ public function clear($check)
9898
} while ($iterator > 0);
9999
}
100100

101-
while ($keys = $this->_Redis->scan($iterator, '', $this->_config['prefix'] . '*')) {
102-
foreach ($keys as $key) {
103-
if ($this->_Redis->del($key) < 1) {
104-
$result = false;
105-
}
106-
}
107-
}
108-
109101
return $result;
110102
}
111103

0 commit comments

Comments
 (0)