diff artifacts/doc/conf/cache.xml @ 7471:fff862f4ef76

Experimental caching of datacage recommendations. The respective hook is called a lot and running the datacage over and over again when loading data can be expensive. So the generated recommendations are cached for some time. Hopefully this improves the overall speed of loading data from the datacage.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 30 Oct 2013 15:26:21 +0100
parents ef08c4f57ede
children 2e4d02207239
line wrap: on
line diff
--- a/artifacts/doc/conf/cache.xml	Wed Oct 30 15:02:16 2013 +0100
+++ b/artifacts/doc/conf/cache.xml	Wed Oct 30 15:26:21 2013 +0100
@@ -76,6 +76,16 @@
            memoryStoreEvictionPolicy="LFU"
            />
 
+    <!-- This one is used to cache the recommendation nodes generated from datacage -->
+    <cache name="recommendations"
+           maxElementsInMemory="150"
+           eternal="false"
+           timeToLiveSeconds="1800"
+           memoryStoreEvictionPolicy="LRU"
+           overflowToDisk="false"
+           diskPersistent="false"
+       />
+
     <!-- This one is used for the cross section next neighbor lookup -->
     <cache name="cross-section-kms"
            maxElementsInMemory="50"
@@ -149,7 +159,8 @@
     <cache name="official-lines"
            maxElementsInMemory="2"
            timeToLiveSeconds="14400"
-           />
+       />
+
 
     <!-- This one is used for the cross section lookup
          Because of lazy fetching and relatively big amount of data, disabled

http://dive4elements.wald.intevation.org