Skip to content

Commit

Permalink
[8.x] Fix issue with deleteValues method on phpredis client
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Kuzmenchuk committed Dec 14, 2021
1 parent bd442ac commit b62f802
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Illuminate/Cache/RedisTaggedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,16 @@ protected function deleteValues($referenceKey)
$referenceKey, $cursor, ['MATCH' => '*', 'COUNT' => 1000]
);

if (!$valuesChunk) {
break;
}

$valuesChunk = array_unique($valuesChunk);

if (count($valuesChunk) > 0) {
$this->store->connection()->del(...$valuesChunk);
}
} while ($cursor !== $defaultCursorValue);
} while (((string) $cursor) !== $defaultCursorValue);
}

/**
Expand Down

0 comments on commit b62f802

Please sign in to comment.