1 | <?php |
||
16 | class Cache extends Api |
||
17 | { |
||
18 | /** |
||
19 | * Purge all files (permission needed: #zone:edit) |
||
20 | * Remove ALL files from CloudFlare's cache |
||
21 | * |
||
22 | * @param string $identifier API item identifier tag |
||
23 | * @param bool|null $purge_everything A flag that indicates all resources in CloudFlare's cache should be removed. |
||
24 | * Note: This may have dramatic affects on your origin server load after performing this action. (true) |
||
25 | */ |
||
26 | public function purge($identifier, $purge_everything = null) |
||
34 | |||
35 | /** |
||
36 | * Purge individual files (permission needed: #zone:edit) |
||
37 | * Remove one or more files from CloudFlare's cache |
||
38 | * |
||
39 | * @param string $identifier API item identifier tag |
||
40 | * @param array|null $files An array of URLs that should be removed from cache |
||
41 | * @param array|null $tags Any assets served with a Cache-Tag header that matches one of the provided values will be purged from the CloudFlare cache |
||
42 | */ |
||
43 | public function purge_files($identifier, array $files = null, array $tags = null) |
||
52 | } |
||
53 |