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 = $proCacheStatic->hasCacheFile(Page $page);
// usage with all arguments
$bool = $proCacheStatic->hasCacheFile(Page $page, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | |
options (optional) | array |
|
Return value
bool
string
Returns false if not cached, or returns string with cache filename if cached.
ProCacheStatic methods and properties
API reference based on ProcessWire core version 3.0.244