1 | <?php |
||
23 | class LiteSpeed extends HttpProxyClient implements PurgeCapable, TagCapable, ClearCapable |
||
24 | { |
||
25 | private $headerLines = []; |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function clear() |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function purge($url, array $headers = []) |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | * |
||
55 | * You must configure the following options: |
||
56 | * |
||
57 | * - document_root: Must contain the absolute path on your system, where the invalidation file should be created at. |
||
58 | * |
||
59 | * You can configure the following options: |
||
60 | * |
||
61 | * - target_dir: If you don't want to have your invalidation files reside in document_root directly, you can specify |
||
62 | * a target_dir. It will be appended to both, the document_root when creating the files and the URL |
||
63 | * when executing the invalidation request. |
||
64 | * - base_uri: The base_uri is used when you call purge() with passing an URL without any host (e.g. /path). The |
||
65 | * base_uri will be used as host then. |
||
66 | */ |
||
67 | protected function configureOptions() |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function invalidateTags(array $tags) |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function flush() |
||
126 | |||
127 | private function addHeaderLine($header, $value, $host = null) |
||
139 | |||
140 | /** |
||
141 | * Creates the file and returns the file name. |
||
142 | * |
||
143 | * @param array $lines |
||
144 | * |
||
145 | * @return string |
||
146 | */ |
||
147 | private function createInvalidationFile(array $lines) |
||
162 | |||
163 | /** |
||
164 | * @return string |
||
165 | */ |
||
166 | private function getFilePath() |
||
176 | } |
||
177 |