Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:clusterpurge

Physically purge the cluster files of the given scopes (--scopes=scope1,scope2; dry run unless --apply).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/clusterpurge.md

On this page

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 --help

Options

OptionValueHelp
--applyPurge the files (the default is a dry run that lists them and purges nothing)
--dry-runThe default, kept for scripts that pass it: list the affected files without removing them
--iteration-sleeprequiredAmount of seconds to sleep between each iteration when performing a purge operation, can be a float. Default is one second.
--iteration-limitrequiredAmount of items to remove in each iteration when performing a purge operation. Default is 100.
--memory-monitoringGenerates memory monitoring output. If set, memory usage will be logged in var/log/clusterpurge.log.
--scopesrequiredComma 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.
--expiryrequiredNumber 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 ...).


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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x