ProCacheStatic::static method
Get cache file for given page and options if it exists, or false if it does not
This is very similar to getCacheFile() but more geared towards the public API.
Usage
// basic usage
$bool = $procache->static->hasCacheFile(Page $page);
// usage with all arguments
$bool = $procache->static->hasCacheFile(Page $page, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$page | Page | |
$options (optional) | array |
|
Return value
bool stringReturns false if not cached, or returns string with cache filename if cached.
$procache->static methods and properties
API reference based on ProcessWire core version 3.0.255