(Enterprise)

Dynamic cache invalidation for prices generated by price rules

Dynamic cache invalidation ensures that the prices customers see on the storefront reflect any changes business users make to price rules, price equations, price constants, and price rule assignments.

On a WebSphere Commerce store that has dynamic caching enabled, all JSP pages and servlets with cache entry definitions in the store's cachespec.xml file are cached. This can include pages that display prices generated from price rules. If a price calculated from a price rule is displayed on a cached JSP page or servlet, and if a business user then makes changes related to the price rule, the price is not recalculated unless the cache is invalidated. Dynamic cache invalidation is supported for the following types of price-rule-related changes:

To support cache invalidation for these scenarios, WebSphere Commerce uses command-based invalidation. A sample cachespec.xml containing a set of invalidation rules is provided at the following path:


Related concepts
Price rule object cache overview
Cache invalidation


Related tasks
Tuning the price rule object cache
Setting up dynamic cache invalidation for prices generated by price rules