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