Clear by path or wildcard path, regardless of page
Usage
// basic usage
$int = $proCacheStatic->clearPath(string $path);
// usage with all arguments
$int = $proCacheStatic->clearPath(string $path, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
path | string | Specify exact path or wildcard path to page or URL segment to clear
|
options (optional) | array |
|
Return value
int
array
Quantity or array of files and/or directories that were removed
ProCacheStatic methods and properties
API reference based on ProcessWire core version 3.0.244