Saturday, September 12, 2015

Do not cache (do-not-cache) the particular JSP in Websphere Commerce

Use the "do-not-cache" attribute as true for cache-entry of the page, which we don't want to cache. Then the particular JSP won't cache, when ever the request comes it will create a new object  instead of looking from cache object for that import JSP.


<cache-entry>
<class>servlet</class>
<name>/StorefrontAssetStore/Layouts/BrandDetails.jsp</name>
<property name="do-not-consume">true</property>
<property name="do-not-cache">true</property>
<property name="consume-subfragments">true</property>

<cache-id>
<component id="storeId" type="parameter">
<required>true</required>
</component>
<component id="catalogId" type="parameter">
<required>true</required>
</component>
<component id="DC_langId" type="parameter">
<required>true</required>
</component>
</cache-id>
</cache-entry>

No comments:

Post a Comment