HCL Commerce store pages properties

For a more complete list see the topic cachespec.xml file. When you cache HCL Commerce store pages, the following properties are used in the cachespec.xml file:

Property Value Valid classes Description
EdgeCacheable True or False Default is false. Servlet If the property is true, then the given servlet or JSP file is externally requested from an Edge Server. Whether the servlet or JSP file is cacheable depends on the rest of the cache specification.
consume-subfragments True or False. Default is false Servlet When a servlet is cached only the content of that servlet is stored. Placeholders for any other fragments to which it includes or forwards are created. Consume-subfragments (CSF) tells the cache to continue saving content when it encounters a child servlet via an include. The parent entry (the one marked CSF) will include all the content from all fragments in its cache entry, which result in one big cache entry that has no includes or forwards, but the content from the whole tree of entries. This method can save a significant amount of application server processing, but is typically only useful when the external HTTP request contains all the information needed to determine the entire tree of included fragments.
save-attributes True or False. Default is true. Servlet When save-attributes is set to false, the request attributes are not saved with the cache entry.
store-cookies True or False. Default is true. Servlet When store-cookies is set to false, the request cookies are not saved with the cache entry.
sharing-policy not-shared is required. In the policy required by HCL Commerce, not-shared, cache entries for this object are not shared among different application servers. These entries can contain non-serializable data.

By default, dynamic caching caches the cookies (when caching by servlet class) and all request attributes (servlet and JSP pages) along with the cache entries. However, HCL Commerce cookies and request attributes contain user specific information that should not be cached. As a result, the following property names and values are mandatory when caching full pages:


<property name="save-attributes">false</property>
<property name="store-cookies">false</property>
The following property name and value is mandatory for all cache-entries defined for the JSP files:
<property name="save-attributes">false</property>