$procache→hasCacheFile()
Get cache file for given Page (and options) or false if does not currently have a cache file
Usage
// basic usage
$bool = $procache->hasCacheFile(Page $page);
// usage with all arguments
$bool = $procache->hasCacheFile(Page $page, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
$page | Page | Page to check or get cache file info for |
$options (optional) | array | Options to refine request:
|
Return value
bool
string
Returns false if not cached, or returns string with cache filename if cached.
$procache methods and properties
API reference based on ProcessWire core version 3.0.252