Skip to the content
Documentation

exp:ezcontentcache

No ratings yet

Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.

Summary

Clear content caches of given nodes or subtrees (--clear-node, --clear-subtree)

Usage

./console exp:ezcontentcache [options]
php bin/php/ezcontentcache.php [options]

Help

The output of ./console help exp:ezcontentcache (the script run with --help), without the standard options:

Usage: bin/php/ezcontentcache.php [OPTION]...
Exponential Content Cache Handler
Allows for easy clearing of Content Caches

Clearing node for content and users tree
./bin/ezcontentcache.php --clear-node=/,5
Clearing subtree for content tree
./bin/ezcontentcache.php --clear-subtree=/


Options:
  --clear-node=VALUE     Clears all content caches related to a given node,
                           pass either node ID or nice url of node.
                           Separate multiple nodes with a comma.
  --clear-subtree=VALUE  Clears all content caches related to a given node subtree,
                           subtree expects a nice url as input.
                           Separate multiple subtrees with a comma

Options

Option Value Description
--clear-node required  
--clear-subtree required  

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/ezcontentcache.php, kernel/private/classes/commands/ezcontentcache.php

See also

Generated example: exp:ezcontentcache

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.