Skip to content

How to clear WCM caches with ConfigEngine task

Applies to

HCL Digital Experience v8.5 and higher

Introduction

Sometimes, it is easier to clear WCM caches from the command line than using the user interface, especially when debugging stale content issues. This article describes how to clear all WCM caches or clear individual WCM caches using the ConfigEngine command.

Instructions

Refer to the following steps to clear WCM caches using ConfigEngine:

Clearing all WCM caches

To clear all WCM caches, run the following ConfigEngine task:

 ./ConfigEngine.sh action-wcm-clear-cache-all

Clearing individual WCM caches

To clear individual WCM caches, run the ConfigEngine script as following:

 ./ConfigEngine.sh <task-name>

Make sure to replace <task-name> with one of the following available tasks:

  • action-wcm-clear-cache-menu
  • action-wcm-clear-cache-nav
  • action-wcm-clear-cache-strategy
  • action-wcm-clear-cache-global
  • action-wcm-clear-cache-module
  • action-wcm-clear-cache-processing
  • action-wcm-clear-cache-site
  • action-wcm-clear-cache-session
  • action-wcm-clear-cache-summary
  • action-wcm-clear-cache-abspath
  • action-wcm-clear-cache-abspathreverse

Additional options

  • If you have user.cache.enable=true, you can also clear that cache using the following task:

    ./ConfigEngine.sh action-wcm-clear-cache-principalinformation
    
  • If the Portal/WAS password is not stored in wkplc.properties, you can include Portal/WAS password using the following command:

    ./ConfigEngine.sh  action-wcm-clear-cache-summary  -DPortalAdminPwd=<password1>  -DWasPassword=<password2>
    

    Replace <password1> and <password2> with your Portal administration and WebSphere Application Server administration password respectively.

Related information