01-28-2020 12:18 PM - edited 02-03-2024 6:41 PM
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.