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 45a5a28 commit 6b6592aCopy full SHA for 6b6592a
phpfastcache/3.0.0/abstract.php
@@ -175,9 +175,15 @@ public function getInfoMulti($list = array()) {
175
return $res;
176
}
177
178
- public function deleteMulti($list = array()) {
179
- foreach($list as $array) {
180
- $this->delete($array[0], isset($array[1]) ? $array[1] : array());
+ public function deleteMulti($list = array(), $option = array()) {
+ foreach($list as $item) {
+ if(is_array($item) && count($item) === 2){
181
+ $this->delete($item[0], $item[1]);
182
+ }else if(is_string($item)){
183
+ $this->delete($item, $option);
184
+ }else{
185
+ throw new Exception('Invalid values passed to deleteMulti()');
186
+ }
187
188
189
0 commit comments