Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace NewfoldLabs\WP\Module\Performance\Cache; |
4 | |
5 | /** |
6 | * Interface for cache types that can be purged. |
7 | */ |
8 | interface Purgeable { |
9 | |
10 | /** |
11 | * Purge everything for the given cache type. |
12 | * |
13 | * @return void |
14 | */ |
15 | public function purge_all(); |
16 | |
17 | /** |
18 | * Purge a specific URL for the given cache type. |
19 | * |
20 | * @param string $url The URL to purge. |
21 | * |
22 | * @return void |
23 | */ |
24 | public function purge_url( $url ); |
25 | } |