Changeset 4310
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo_importer/src/main/resources/VloConfig.xml
r4283 r4310 1 1 <VloConfig> 2 2 3 <pagesInApplicationCache>128</pagesInApplicationCache> 3 <!-- Sets the maximum number of page instances which will be stored in the application scoped second level cache for faster retrieval --> 4 <pagesInApplicationCache>40</pagesInApplicationCache> 4 5 5 <sessionCacheSize>500</sessionCacheSize> 6 <!-- Sets the maximum size (in KILOBYTES) of the File where page instances per session are stored. --> 7 <sessionCacheSize>10000</sessionCacheSize> 6 8 7 9 <deleteAllFirst>true</deleteAllFirst> -
vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/VloWebApplication.java
r4283 r4310 21 21 import org.apache.wicket.util.string.StringValue; 22 22 import org.apache.wicket.util.lang.Bytes; 23 import org.slf4j.Logger; 24 import org.slf4j.LoggerFactory; 23 25 24 26 /** … … 32 34 public class VloWebApplication extends WebApplication { 33 35 36 private final static Logger logger = LoggerFactory.getLogger(VloWebApplication.class); 37 34 38 /** 35 39 * Customised client request cycle<br><br> … … 113 117 114 118 // configure cache by applying the vlo configuration settings to it 115 this.getStoreSettings().setInmemoryCacheSize(VloConfig.getPagesInApplicationCache()); 116 this.getStoreSettings().setMaxSizePerSession(Bytes.kilobytes((long)VloConfig.getSessionCacheSize())); 119 final int pagesInApplicationCache = VloConfig.getPagesInApplicationCache(); 120 logger.info("Setting Wicket in-memory cache size to {}", pagesInApplicationCache); 121 this.getStoreSettings().setInmemoryCacheSize(pagesInApplicationCache); 122 123 final Bytes sessionCacheSize = Bytes.kilobytes((long)VloConfig.getSessionCacheSize()); 124 logger.info("Setting Wicket max size per session to {}", sessionCacheSize); 125 this.getStoreSettings().setMaxSizePerSession(sessionCacheSize); 117 126 118 127 // creata an object referring to the search results
Note: See TracChangeset
for help on using the changeset viewer.