Conditions | 4 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | return 'Remove a set of static pages from the cache'; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param string $url |
||
32 | * @param int $priority |
||
33 | */ |
||
34 | protected function processUrl($url, $priority) |
||
35 | { |
||
36 | $meta = Publisher::singleton()->purgeURL($url); |
||
37 | $meta = (is_array($meta)) ? $meta : []; |
||
38 | if (array_key_exists('success', $meta) && $meta['success']) { |
||
39 | $this->markUrlAsProcessed($url); |
||
40 | |||
41 | return; |
||
42 | } |
||
47 |