exp:expclustercache
Clear the caches of this installation on every host of settings/cluster.ini: every cache (with the Valkey keys of the cache clear listeners) and Velocity's response cache.
Script bin/php/expclustercache.php, code in kernel/private/classes/commands/expclustercache.php. Run it from the installation root, as the user the web server runs as:
./console exp:expclustercache --help
./console exp:cluster:cache --help
php bin/php/expclustercache.php --helpHelp text
Clear the caches on every host
On each host of settings/cluster.ini: exp:ezcache --clear-all, which also clears the caches
extensions keep elsewhere through the cache clear listeners (Valkey INI and view keys) and
the template-block cache; then, on a host with Engine=velocity, Velocity's response cache
(exp:velocity cache clear --apply). --tag and --id clear only those caches. --full runs
exp:velocity deploy --all-caches --no-autoload instead, which also reloads PHP-FPM and
restarts Velocity in the right order.
./console exp:cluster:cache clear
./console exp:cluster:cache clear --tag=template,content
./console exp:cluster:cache clear --full --parallel
./console exp:cluster:cache clear --dry-run
Exit code: 0 every host passed; 1 a host failed; 2 wrong options or settings.Options
| Option | Value | Help |
|---|---|---|
--tag | required | |
--id | required | |
--purge | ||
--full |
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/expclustercache.php, kernel/private/classes/commands/expclustercache.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.