exp:clusterpurge
Physically purge the cluster files of the given scopes (--scopes=scope1,scope2; dry run unless --apply).
Script bin/php/clusterpurge.php, code in kernel/private/classes/commands/clusterpurge.php. Run it from the installation root, as the user the web server runs as:
./console exp:clusterpurge --help
php bin/php/clusterpurge.php --helpOptions
| Option | Value | Help |
|---|---|---|
--apply | Purge the files (the default is a dry run that lists them and purges nothing) | |
--dry-run | The default, kept for scripts that pass it: list the affected files without removing them | |
--iteration-sleep | required | Amount of seconds to sleep between each iteration when performing a purge operation, can be a float. Default is one second. |
--iteration-limit | required | Amount of items to remove in each iteration when performing a purge operation. Default is 100. |
--memory-monitoring | Generates memory monitoring output. If set, memory usage will be logged in var/log/clusterpurge.log. | |
--scopes | required | Comma separated list of file types to purge. Possible values are: classattridentifiers, classidentifiers, content, expirycache, statelimitations, user-info-cache, viewcache, wildcard-cache-index, image, binaryfile, media. |
--expiry | required | Number of days since the file was expired. Only files older than this will be purged. Default is 30, minimum is 1. |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/clusterpurge.php, kernel/private/classes/commands/clusterpurge.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.