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:ezcache

Clear Exponential caches by tag or id (--clear-tag, --clear-id, --clear-all, --list-tags).

Download as PDF

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

On this page

exp:ezcache

Clear Exponential caches by tag or id (--clear-tag, --clear-id, --clear-all, --list-tags).

Script bin/php/ezcache.php, code in kernel/private/classes/commands/ezcache.php. Run it from the installation root, as the user the web server runs as:

./console exp:ezcache --help
php bin/php/ezcache.php --help

Help text

Exponential Cache Handler
Allows for easy clearing of Cache files

./bin/php/ezcache.php --clear-tag=content

Options

OptionValueHelp
--clear-tagrequiredClears all caches related to a given tag, separate multiple tags with a comma
--clear-idrequiredClears all caches related to a given id, separate multiple ids with a comma
--clear-allClears all caches
--iteration-sleeprequiredAmount of seconds to sleep between each iteration when performing a purge operation, can be a float.
--iteration-maxrequiredAmount of items to remove in each iteration when performing a purge operation.
--expiryrequiredDate or relative time which specifies when cache items are to be considered expired, e.g 'now', '-2 days' or 'last monday'. Can only be used together with --purge.
--list-tagsLists all available tags
--list-idsLists all available ids
--purgeEnforces purging of cache items which ensures that specified entries are physically removed (Useful for saving diskspace). Used together with the clear-* options.

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/ezcache.php, kernel/private/classes/commands/ezcache.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