![]()
Using the MemoryCache and FileCache Together
A MemoryCache and FileCache may be used simultaneously to provide both the fastest possible cache response time for the most recent/frequently used resources as well as rapid initial loading of cached resources during initial page views of a new browser session. When both caches are configured simultaneously, the CacheManager will first check if the MemoryCache can provide a requested resource. If the MemoryCache cannot provide the resource, the CacheManager will then check the FileCache for the resource. When new cacheable resources are received the CacheManager will add them to both caches.
In this scenario it is recommended that a relatively small (1MB) MemoryCache be used with a much larger (5MB+) FileCache. This will provide a reasonable balance of Java Heap utilization vs. cache performance. The larger FileCache will prime the smaller MemoryCache as previously cached entries are requested. Typically, this is much faster than requesting the resource via HTTP.
To enable detailed logging of the CacheManager's activities set the following system property:
ice.net.debug.cache=trueThe ice.debug.trace=true or ice.debug.debug=true system property must also be defined for logging to be enabled.
|
Copyright 2005. ICEsoft Technologies, Inc. http://www.icesoft.com |