Tuesday, 8 July 2014

Troubleshooting DynaCache invalidation fails to clear the cache

When:
1) Running the DynaCacheInvalidation scheduled job with the 'clearall' value specified in the CACHEIVL table.
2) Calling the DynaCacheInvalidation URL directly with clear=true passed as a parameter value.

(https://<domainname>:8000/webapp/wcs/tools/servlet/DynaCacheInvalidation?clear=true)

No errors are thrown in the logs and using the 'Clear Cache' button in the Cache Monitor clears the cache as expected.

From the traces you will notice that the logs indicate the wrong cacheName is referenced, which point to a recommended fix not being installed.

[9/27/10 15:19:51:504 MDT] 000000b2 WC_CACHE > com.ibm.commerce.dynacache.commands.DCInvalidationCmdImpl performExecute Entry
[9/27/10 15:19:51:504 MDT] 000000b2 Cache 3 clear() cacheName=default waitOnInvalidation=true

The cacheName should be "baseCache", not "default".

This issue is addressed in the WAS APAR PK77428. This fix is included in WAS V7.0.0.5 if you prefer upgrading your WAS Fix Pack level.

1 comment:

  1. Hello... thanks for this great post. qq: you need to be logged into the accelerator to execute or call this url?

    thanks in advance

    ReplyDelete