Cache maintenance removes expired caches
Should be called as part of a regular maintenance routine and after page/template save/deletion. ProcessWire already calls this automatically, so you don’t typically need to call this method on your own.
Usage
// basic usage
$bool = $cache->maintenance();
// usage with all arguments
$bool = $cache->maintenance($obj = null);
Arguments
Name | Type(s) | Description |
---|---|---|
obj (optional) |
Return value
bool
API reference based on ProcessWire core version 3.0.236