ProCacheFileMerger::clean()
Clean up the merged file cache, removing old/expired files
Usage
// basic usage
$int = $proCacheFileMerger->clean();
// usage with all arguments
$int = $proCacheFileMerger->clean(string $ext = '', int $expiredSeconds = 0);Arguments
| Name | Type(s) | Description |
|---|---|---|
$ext (optional) | string | Clean only files with this extension |
$expiredSeconds (optional) | int | Clear only files older than this many seconds Default:$this->expiredSeconds |
Return value
intNumber of files cleaned out
ProCacheFileMerger methods and properties
API reference based on ProcessWire core version 3.0.252