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

Clear and inspect caches by tag, id or all: content, static, HTTP, Velocity, OPcache, APCu.

Download as PDF

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

On this page

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

Options

OptionValueHelp
--dry-runList what would be cleared and change nothing
--jsonReport as one JSON object
--allclear: every cache
--tagrequiredclear: caches with these tags (comma separated); httpcache purge: these HTTP cache tags
--idrequiredclear: caches with these ids (comma separated)
--purgeclear, imagealias: remove the entries for real
--expiryrequiredwith --purge: only entries older than this, e.g. "-2 days"
--iteration-sleeprequiredwith --purge: seconds to sleep between iterations
--iteration-maxrequiredwith --purge: entries per iteration
--sizeslist: count the files and bytes of each cache
--siterequiredstatic: the siteaccess to generate or clear (default every cacheable one)
--pathrequiredstatic: pages relative to the site, comma separated
--noderequiredstatic, httpcache purge: node ids, comma separated
--urlrequiredhttpcache purge: urls, comma separated
--max-pagesrequiredstatic regenerate: stop after this many pages per site (default 2500)
--max-depthrequiredstatic regenerate: follow links this many steps (default 12)
--keepstatic 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].


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.

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