cancel
Showing results for 
Search instead for 
Did you mean: 

Caching in v2 - How to invalidate product element in the cache after it is updated in the HMC? When I get the product by code, I get the old value, not the updated value.

Former Member
0 Kudos
 

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member747843
Active Participant
0 Kudos

Product will be invalidated automaticaly after 150 seconds or 60 second (depends on which call you use). You can see it in configuration file : ycommercewebservices/web/webroot/WEB-INF/ehcache.xml.

    <cache name="productSearchCache"
            maxElementsInMemory="1000"
            eternal="false"
            overflowToDisk="true"
            timeToLiveSeconds="150"
            diskPersistent="false"
            maxElementsOnDisk="2000"
            memoryStoreEvictionPolicy="LRU"/>
 
     <cache name="productCache"
            maxElementsInMemory="1000"
            eternal="false"
            overflowToDisk="true"
            timeToLiveSeconds="60"
            diskPersistent="false"
            maxElementsOnDisk="2000"
            memoryStoreEvictionPolicy="LRU"/>

More info about cache can be found here : https://wiki.hybris.com/display/release5/Caching+in+v2