ehcache.hibernate-clustered.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-impl Show documentation
Show all versions of portal-impl Show documentation
Contains implementation for the portal services.
<ehcache dynamicConfig="false" monitoring="off" name="hibernate-clustered" updateCheck="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd" > <cacheManagerPeerProviderFactory class="com.liferay.portal.cache.ehcache.LiferayCacheManagerPeerProviderFactory" properties="portalPropertyKey=net.sf.ehcache.configurationResourceName.peerProviderProperties" propertySeparator="," /> <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" /> <!-- Hibernate will use the defaultCache unless custom configurations are defined below for individual domain objects, collection, queries, etc. --> <defaultCache eternal="false" maxElementsInMemory="10000" overflowToDisk="false" timeToIdleSeconds="600" > <cacheEventListenerFactory class="com.liferay.portal.cache.ehcache.LiferayCacheEventListenerFactory" properties="replicatePuts=false,replicateUpdatesViaCopy=false" propertySeparator="," /> </defaultCache> <!-- Tracks the timestamps of the most recent updates to particular tables. It is important that the cache timeout of the underlying cache implementation be set to a higher value than the timeouts of any of the query caches. In fact, it is recommend that the the underlying cache not be configured for expiry at all. --> <cache eternal="true" maxElementsInMemory="5000" name="org.hibernate.cache.UpdateTimestampsCache" overflowToDisk="false" > <cacheEventListenerFactory class="com.liferay.portal.cache.ehcache.LiferayCacheEventListenerFactory" /> </cache> <!-- The cache name is the same as the class name specified in your Hibernate mapping file. --> <cache eternal="false" maxElementsInMemory="10000" name="com.liferay.portal.model.impl.UserImpl" overflowToDisk="false" timeToIdleSeconds="600" > <cacheEventListenerFactory class="com.liferay.portal.cache.ehcache.LiferayCacheEventListenerFactory" properties="replicatePuts=false,replicateUpdatesViaCopy=false" propertySeparator="," /> </cache> </ehcache>