We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a67dc1 commit 0a8c736Copy full SHA for 0a8c736
src/Illuminate/Cache/RedisTaggedCache.php
@@ -193,8 +193,17 @@ protected function flushValues()
193
->map(fn (string $key) => $this->store->getPrefix().$key)
194
->chunk(1000);
195
196
+ $connection = $this->store->connection();
197
foreach ($entries as $cacheKeys) {
- $this->store->connection()->del(...$cacheKeys);
198
+ if ($connection instanceof PredisClusterConnection) {
199
+ $connection->pipeline(function ($connection) use ($cacheKeys) {
200
+ foreach ($cacheKeys as $cacheKey) {
201
+ $connection->del($cacheKey);
202
+ }
203
+ });
204
+ } else {
205
+ $connection->del(...$cacheKeys);
206
207
}
208
209
0 commit comments