forked from Archives/Athou_commafeed
remove ehcache support as it does not provide a performance boost (fix #264)
This commit is contained in:
@@ -22,12 +22,6 @@
|
||||
<property name="hibernate.order_inserts" value="true" />
|
||||
<property name="hibernate.order_updates" value="true" />
|
||||
|
||||
<property name="hibernate.cache.region.factory_class"
|
||||
value="org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory" />
|
||||
|
||||
<property name="hibernate.cache.use_second_level_cache"
|
||||
value="true" />
|
||||
<property name="hibernate.cache.use_query_cache" value="true" />
|
||||
<property name="hibernate.generate_statistics" value="true" />
|
||||
</properties>
|
||||
</persistence-unit>
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd"
|
||||
updateCheck="false" monitoring="autodetect" dynamicConfig="false">
|
||||
|
||||
<diskStore path="java.io.tmpdir" />
|
||||
|
||||
<defaultCache maxEntriesLocalHeap="1000000" eternal="false"
|
||||
timeToIdleSeconds="120" timeToLiveSeconds="120" maxEntriesLocalDisk="10000000"
|
||||
diskExpiryThreadIntervalSeconds="120" memoryStoreEvictionPolicy="LRU">
|
||||
<persistence strategy="localTempSwap" />
|
||||
</defaultCache>
|
||||
|
||||
<cache name="com.commafeed.backend.model.FeedEntryContent"
|
||||
maxEntriesLocalHeap="1000" eternal="false" timeToIdleSeconds="120"
|
||||
timeToLiveSeconds="120" maxEntriesLocalDisk="100000"
|
||||
diskExpiryThreadIntervalSeconds="120" memoryStoreEvictionPolicy="LRU">
|
||||
<persistence strategy="localTempSwap" />
|
||||
</cache>
|
||||
|
||||
</ehcache>
|
||||
Reference in New Issue
Block a user