Differentiate cache id for shared views from mobile and base stores

Technote (FAQ)


Question

The Madisons mobile starter store has some shared views with Madisons starter store.
For these shared views, how can different cache-ids be generated to cache the mobile version of the page separate from the non-mobile version of the same page?

Answer

1) In the wc-server.xml file, add the following code to /config/Components/component[name="DynaCacheFilterMappings"]:

                <map
                    className="com.ibm.commerce.dynacache.filter.DeviceFormatIdCallBack"
                    display="false" dynacacheAttributeName="DC_deviceFormatId"
                    methodName="setDeviceFormatId" name="setDeviceFormatId"/>


This callback is used to generate the CacheFilter attribute "DC_deviceFormatId"


2) In the cachespec.xml file, add the following to all cache-id entries that are shared by the base store and the mobile store:

            <component id="DC_deviceFormatId" type="attribute">
                <required>true</required>
            </component>


Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere Commerce Enterprise
Caching

Software version:

7.0

Operating system(s):

AIX, IBM i, Linux, Solaris, Windows, i5/OS

Software edition:

Enterprise

Reference #:

1616559

Modified date:

2012-11-19

Translate my page

Machine Translation

Content navigation