on 05-18-2022 7:44 PM
Hello Experts,
At documentaion mentioned to use OCC extension as a preferable way to extend OCC.
I try it, but look like I can't find a way how to configure extra cache in this case. Here example how to do it for occaddon https://help.sap.com/docs/SAP_COMMERCE/9d346683b0084da2938be8a285c0c27a/00acb76c665940c498e49120eae7...
But looks like it's not possible to do with new architecture that SAP recomend to use, isn't it? Or do I miss something?
Best Regards,
Vitalii
Example of custom cache manager definition:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
">
<alias name="defaultMyoccCacheManager" alias="customCacheManager"/>
<bean id="defaultMyoccCacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager">
<property name="cacheManager" ref="myoccEhcache"/>
</bean>
<alias name="defaultMyoccEhcache" alias="myoccEhcache"/>
<bean id="defaultMyoccEhcache"
class="de.hybris.platform.webservicescommons.cache.TenantAwareEhCacheManagerFactoryBean">
<property name="cacheNamePrefix" value="myoccCache_"/>
<property name="configLocation" value="classpath:/myocc/cache/ehcache.xml"/>
</bean>
</beans>
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 | |
2 | |
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.