IBM Support

Scheduling a full cache clear for Dynacache when using WebSphere Commerce *|* -10FF01E6B644E6698525794C000700A6- *|*

Question & Answer


Question

Scheduling a full cache clear for Dynacache when using WebSphere Commerce *|* -10FF01E6B644E6698525794C000700A6- *|*

Answer

Technote (FAQ)


Question

I do not want to manually launch Cache Monitor to clear cache at the same time each day. How can I schedule the task of full cache clear?

Cause

WebSphere Application Server does not provide a script or documentation to set up a scheduler to clear cache.

Answer

In WebSphere Commerce there is a scheduler job called DynacacheInvalidation that runs every 10 minutes by default. This job fires invalidations for rows in the CACHEIVL database table.

If a row has the 'DATAID' or 'TEMPLATE' column set to 'clearall' the DynacacheInvalidation job will clear the entire cache.

All that needs to be done is an insertion of the 'clearall' record in the CACHEIVL table when you want the cache cleared and the DynacacheInvalidation job will clear the cache in its next iteration.

A custom class can be coded to insert a 'clearall' record in the CACHEIVL table and set the WebSphere Commerce scheduler or alternatively some other mechanism to schedule an insert of a 'clearall' record in a DB2 or Oracle database table (CACHEIVL).

Here is more information on 'clearall' and invalidations using DynacacheInvalidation job:
- Cache invalidation
- The schema of a CACHEIVL table

Contact IBM WebSphere Commerce Support if further assistance is required.


[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
12 October 2021

UID

ibm10764239