Hello,

My question refers to the distributed cache configuration.

Using the same configuration, with only defaultCache, I get inconsistent data (case A). But if I add an additional cache entry will not get those errors of inconsistency (case B).

Do you know why?

I do not want to set the 130 caches that set aumaticamente defaultCache

Thanks in advance

P. S. I guess all the time that what is not specified, will EHCache as a template using defaultCache settings.

Case A:

view plaincopy to clipboardprint?

1. <defaultCache
2. maxElementsInMemory="10000"
3. eternal="false"
4. timeToIdleSeconds="0"
5. overflowToDisk="false"
6.
7. >
8. <cacheEventListenerFactory
9. class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
10.
11. />
12. <bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" />
13. </defaultCache>

<defaultCache maxElementsInMemory="10000" eternal="false" timeToIdleSeconds="0" overflowToDisk="false" > <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" /> <bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" /> </defaultCache>

Case B:

view plaincopy to clipboardprint?

1. <defaultCache
2. maxElementsInMemory="10000"
3. eternal="false"
4. timeToIdleSeconds="0"
5. overflowToDisk="false"
6.
7. >
8. <cacheEventListenerFactory
9. class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
10.
11. />
12. <bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" />
13. </defaultCache>
14.
15. <cache
16. name="com.liferay.portal.model.impl.LayoutImpl"
17. maxElementsInMemory="10000"
18. eternal="false"
19. timeToIdleSeconds="0"
20. overflowToDisk="false"
21. >
22. <cacheEventListenerFactory
23. class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
24. />
25. <bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" />
26. </cache>