Skip to main content

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

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

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

Content navigation