cancel
Showing results for 
Search instead for 
Did you mean: 

Caching Navigation Bar Component.

atul9888
Explorer
0 Kudos

Hi Team ,

We indexed the category in solr and with the help of that we are showing up all the nodes (meaning all the level of category ) in one go in Navigation bar component .

We this value is populating dynamically and it get updated after the solr indexing happens . So for making the performance more efficient we are thinking to cache the values so where .

My question - what will be the best approach for it should i used session to store or i should rely on cahce ? if the answer is cache any idea how to cache navigation bar component ?

thanks ,

Atul

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member633554
Active Participant

In

hybris\bin\ext-accelerator\acceleratorcms\resources

Edit

acceleratorcms-spring.xml

You will see a section like this. Just add your component here and restart system. NavigationBarComponent is here on default installs.

<util:map id="defaultCacheKeyProviders" key-type="java.lang.String">
        <entry key="AbstractCMSComponent" value-ref="cmsCacheKeyProvider"/>
        <entry key="NavigationBarComponent" value-ref="cmsCacheKeyProvider"/>

...

</util>