Skip to content

Commit 79cfb76

Browse files
authored
Merge pull request #394 from interactiv4/feature/M095M01A-29
feature/M095M01A-29 #23: [MAGENTO 2] Make sure we are not sending pur…
2 parents abe13a4 + 778f30d commit 79cfb76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: Model/Api.php

+5
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ public function cleanUrl($url)
179179
*/
180180
public function cleanBySurrogateKey($keys)
181181
{
182+
$keys = array_filter($keys);
183+
if (empty($keys)) {
184+
return true;
185+
}
186+
182187
$type = 'clean by key on ';
183188
$uri = $this->_getApiServiceUri() . 'purge';
184189
$num = count($keys);

0 commit comments

Comments
 (0)