Skip to Content
Nov 22, 2018 at 01:35 PM

cache the navigation with respect to b2bunit


Hi All,

We have b2c and b2b sites on the same code base and we are caching the navigation using below configuration

 <alias name="defaultCacheKeyProviders" alias="cacheKeyProviders"/>
     <util:map id="defaultCacheKeyProviders" key-type="java.lang.String">
         <!-- Header region -->
         <entry key="SimpleBannerComponent" value-ref="cmsCacheKeyProvider"/>
         <entry key="NavigationBarCollectionComponent" value-ref="cmsCacheKeyProvider"/>
         <entry key="NavigationBarComponent" value-ref="cmsCacheKeyProvider"/>

But for the for b2b we have different with respect to the b2bunit attirbutes.So I want to cache that navigation.

How can I create the navigation cache with respect to the b2bunits.