* separate cache with large diskstore capacity for full web pages
This commit is contained in:
parent
0c6b16b5f2
commit
e48bbbe2ee
|
@ -33,6 +33,20 @@
|
|||
memoryStoreEvictionPolicy="LRU"
|
||||
/>
|
||||
|
||||
<!--
|
||||
Short-lived (48 hours) persistent disk cache for full web pages
|
||||
-->
|
||||
<cache name="web-data-diskcache"
|
||||
maxElementsInMemory="50"
|
||||
maxElementsOnDisk="5000"
|
||||
eternal="false"
|
||||
timeToIdleSeconds="172800"
|
||||
timeToLiveSeconds="172800"
|
||||
overflowToDisk="true"
|
||||
diskPersistent="true"
|
||||
memoryStoreEvictionPolicy="LRU"
|
||||
/>
|
||||
|
||||
<!--
|
||||
Very long-lived cache (one month!) anime/series list and episode information.
|
||||
-->
|
||||
|
|
|
@ -24,7 +24,7 @@ public class CachedPage extends CachedResource<String> {
|
|||
|
||||
@Override
|
||||
protected Cache getCache() {
|
||||
return CacheManager.getInstance().getCache("web-datasource");
|
||||
return CacheManager.getInstance().getCache("web-data-diskcache");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue