exp:cache
Clear and inspect caches by tag, id or all: content, static, HTTP, Velocity, OPcache, APCu.
Script bin/php/cache.php, code in kernel/private/classes/commands/cache.php. Run it from the installation root, as the user the web server runs as:
./console exp:cache --help
php bin/php/cache.php --helpOptions
| Option | Value | Help |
|---|---|---|
--dry-run | List what would be cleared and change nothing | |
--json | Report as one JSON object | |
--all | clear: every cache | |
--tag | required | clear: caches with these tags (comma separated); httpcache purge: these HTTP cache tags |
--id | required | clear: caches with these ids (comma separated) |
--purge | clear, imagealias: remove the entries for real | |
--expiry | required | with --purge: only entries older than this, e.g. "-2 days" |
--iteration-sleep | required | with --purge: seconds to sleep between iterations |
--iteration-max | required | with --purge: entries per iteration |
--sizes | list: count the files and bytes of each cache | |
--site | required | static: the siteaccess to generate or clear (default every cacheable one) |
--path | required | static: pages relative to the site, comma separated |
--node | required | static, httpcache purge: node ids, comma separated |
--url | required | httpcache purge: urls, comma separated |
--max-pages | required | static regenerate: stop after this many pages per site (default 2500) |
--max-depth | required | static regenerate: follow links this many steps (default 12) |
--keep | static regenerate: add to what is stored instead of replacing it |
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 ...).
Arguments: [group][action].
Related
Generated by ./console exp:help:examples from bin/php/cache.php, kernel/private/classes/commands/cache.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.