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
int
Number of files cleaned out
ProCacheFileMerger methods and properties
API reference based on ProcessWire core version 3.0.244