How to disable Hybris cache?


How to disable Hybris cache?



In develop mode, I would like to disable the Hybris cache regions (at least the query region). I found no property for this in the project.properties and any information in the Hybris official website.





Did you try min cache size?
– mkysoft
May 17 '17 at 10:50




3 Answers
3



By default Hybris use Region Cache. You can disable Region cache but then Hybris will use the previous cache solution.



local.properties



cache.legacymode=true



It is recommended to use the Hybris Region Cache. That is why after switching to the previous cache solution you can expect some warning messages displayed in the console logs and in the Hybris Administration Console on Cache page.



OR



You can try changing its size to Zero but i am not sure.



Default Value -


regioncache.querycacheregion.size=20000



You have several ways explained here : Region cache



Quoting the doc :



Disabling the Hybris Region Cache



The Hybris Region Cache is the default cache. However you can still
use the previous cache solution by adding the following parameter to
the local.properties file: local.properties cache.legacymode=true



It is recommended to use the Hybris Region Cache. That is why after
switching to the previous cache solution you can expect some warning
messages displayed in the console logs and in the Hybris
Administration Console on Cache page.



Clearing cache by code :


CacheRegion region = ...;
region.clearCache();



Set a configuration (not tried)


regioncache.querycacheregion.size=0



Set a JVM property (only for ehcache):


-Dnet.sf.ehcache.disabled=true



You can deactivate cache feature on SAP Hybris platform by running below groovy script via HAC console :


import de.hybris.platform.core.Registry;
Registry.getMasterTenant().getCache().setEnabled(false);






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Opening a url is failing in Swift

Export result set on Dbeaver to CSV