Skip to content

Commit

Permalink
Merge pull request #16568 from maksimru/5.3
Browse files Browse the repository at this point in the history
[5.3] avoid unexpected redis connection problems during tagged flush
  • Loading branch information
taylorotwell authored Nov 28, 2016
2 parents bd3eb57 + 0de808c commit bbf11f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Cache/RedisTaggedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ protected function deleteValues($referenceKey)
$values = array_unique($this->store->connection()->smembers($referenceKey));

if (count($values) > 0) {
call_user_func_array([$this->store->connection(), 'del'], $values);
foreach (array_chunk($values, 1000) as $valuesChunk) {
call_user_func_array([$this->store->connection(), 'del'], $valuesChunk);
}
}
}

Expand Down

0 comments on commit bbf11f0

Please sign in to comment.