- Full page and fragment caching
The method by which the WebSphere Application Server caches JSP files is based on how the JSP is written. If the page output for a particular HCL Commerce command always produces the same result based on the URL parameters and request attributes, then this page output can be cached with the cache-entry using the property element, consume-subfragments (CSF) along with the HCL Commerce controller servlet (com.ibm.commerce.struts.ECActionServlet.class
in Version 9.0.0.x or com.ibm.commerce.struts.v2.ECActionServlet.class
in Version 9.0.1+ and if you are using Strut 2 configuration com.ibm.commerce.struts.v2.ECActionStrutsServlet.class
) as the servlet name. When the cache-entry is defined in this manner, then the page output is cached in a manner known as full page caching. The big advantage of using consume-subfragments with the controller servlet is performance, but if there is personalized information on the page, such as a mini shopping cart, then full page caching with fragments can be used.
- Edge caching
Caching on the edge is a simple and effective way to improve the performance of your system. The WebSphere Application Server's dynacache has built-in functionality so that setting the EdgeCacheable property of a cache entry to true will allow it to be cached on the edge. This property takes care of the ESI for you, making edge caching easy with virtually no setup overhead.
- Using dynamic API to not cache
Occasionally, it is not appropriate to cache a page that matches a caching rule, or a fragment within the cached page. In this case, the Dynacache API makes it possible to ignore the cache rule and not cache the page or fragment in question.
- Updating cache sizes
You can independently configure the size of each cache that is used in HCL Commerce. The size of each cache is defined by its number of entries and by its size in megabytes (MB). The number of entries is a maximum size, not the current actual size, and the size in MB is the maximum memory footprint.
- Enabling cache monitoring
HCL Commerce provides a Dynamic Cache Monitor application for displaying cache statistics, edge side and disk statistics, cache entries, dependency IDs, and cache policy information. A Cache Monitor is an installable web application that provides a real-time view of the current state of dynamic cache.