Loading src/StackPathApi.php +16 −13 Original line number Diff line number Diff line Loading @@ -183,12 +183,16 @@ class StackPathApi { $params = ['items' => []]; switch ($type) { case 'tags': $tags = []; // Collect all tags. foreach ($invalidations as $invalidation) { $tag = $this->createHashTag($invalidation); $tags[] = $this->createHashTag($invalidation); } // Create purge selector to have 1 url per request. $purgeSelector = [ 'selectorType' => 'TAG', 'selectorName' => 'X-Tag', 'selectorValue' => $tag, 'selectorValue' => implode(',', $tags), 'selectorValueDelimiter' => ',', ]; $params['items'][] = [ Loading @@ -197,7 +201,6 @@ class StackPathApi { 'recursive' => TRUE, 'invalidateOnly' => FALSE, ]; } break; case 'url': Loading Loading
src/StackPathApi.php +16 −13 Original line number Diff line number Diff line Loading @@ -183,12 +183,16 @@ class StackPathApi { $params = ['items' => []]; switch ($type) { case 'tags': $tags = []; // Collect all tags. foreach ($invalidations as $invalidation) { $tag = $this->createHashTag($invalidation); $tags[] = $this->createHashTag($invalidation); } // Create purge selector to have 1 url per request. $purgeSelector = [ 'selectorType' => 'TAG', 'selectorName' => 'X-Tag', 'selectorValue' => $tag, 'selectorValue' => implode(',', $tags), 'selectorValueDelimiter' => ',', ]; $params['items'][] = [ Loading @@ -197,7 +201,6 @@ class StackPathApi { 'recursive' => TRUE, 'invalidateOnly' => FALSE, ]; } break; case 'url': Loading