Feature Pack 8: The Madisons store is deprecated. Most features demonstrated in the Madisons store are available in the Aurora store.

Dynamic caching in the starter store

The starter store enables dynamic cache by default, similar to other WebSphere Commerce starter stores. Dynamic caching reduces the server as significant segments of the page (such as store widgets) do not have to be retrieved from the server on every new page display.

To ensure that the dynamic cache service is enabled, see Enabling the dynamic cache service and servlet caching.

For configuration information, see Configuring the dynamic cache service.

Full page caching

Full page caching is used in the TopCategoryDisplay, CategoryDisplay, and ProductDisplay pages. Cache the AJAX response view for each of the refresh areas, if possible. Cache responses that are common to all customers such as category browsing, and not those responses that can be different to customers such as shopping carts.

Separately caching shared views

The Madisons starter store contains shared views with the Madisons mobile starter store. You can generate different cache-ids for the shared views to separately cache the mobile version of the page from the non-mobile version of the same page.
  1. In the wc-server.xml file, add the following code to the /config/Components/component[name="DynaCacheFilterMappings"] section:
       display="false" dynacacheAttributeName="DC_deviceFormatId"
       methodName="setDeviceFormatId" name="setDeviceFormatId"/>
    Where the callback is used to generate the DC_deviceFormatId CacheFilter attribute.
  2. In the cachespec.xml file, add the following to all cache-id entries that are shared by the Madisons starter store and the Madisons mobile starter store:
    <component id="DC_deviceFormatId" type="attribute">