Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function __invoke(string $tag): void |
||
38 | { |
||
39 | if (empty($this->fastlyServiceId) || empty($tag)) { |
||
40 | return; |
||
41 | } |
||
42 | |||
43 | $this->purgeApi->bulkPurgeTag([ |
||
44 | 'fastly_soft_purge' => (int) $this->enableSoftPurge, |
||
45 | 'service_id' => $this->fastlyServiceId, |
||
46 | 'purge_response' => [ |
||
47 | 'surrogate_keys' => explode(' ', $tag), |
||
48 | ], |
||
52 |