Re: WM cache settings
"Nikhil G. Daddikar" <[email protected]> Sat, 30 Jul 2005 09:18:26 +0530
| Newsgroups | gmane.comp.java.webmacro.user |
|---|---|
| Message-ID | <[email protected]> |
Thank you for your answer. I have two questions: 1) what are those FastWriter settings in WM.properties, there is a note there that it will "significantly" affect performance but it doesn't tell me how. 2) Is the refresh rate specified in seconds? Also, I don't understand it's purpose. Why would I want it to reload after some specific time? I would only want it to load after it changes. Right? Thanks again. Lane Sharman wrote: > Hello Nikhil, > > About 2 years ago, we had a very intense > development/dialog/experimentation with caching. All of this resulted > in a pluggable architecture. Brian Goetz provided this architecture on > the whole. I wrote a caching system, which is best called a > "generational system". I use it in all of my wm apps. > >#entry in webmacro.properties: > >CachingProvider.template.CacheManager: org.webmacro.resource.GenerationalCacheManager >CachingProvider.url.CacheManager: org.webmacro.resource.GenerationalCacheManager ># Set reloading to true since we are in development mode by default. >GenerationalCacheManager.*.ReloadOnChange: true ># The refresh rate for incorporating changes to the mutable image >GenerationalCacheManager.*.RefreshRate: 1000 > > > The RefreshRate is the most important for performance purposes. It > means: "if the cache has not been updated for this amt of time, and > there are stale changes, and there is an idle interval, then replace > the current generation with a newer generation.". > > Since updates occur only to the prospective cache, the current cache > is read-only and therefore not subject to syncrhonization. > > Give it a try! > > Lane > > > Nikhil G. Daddikar wrote: > >> Hello, >> >> I have about 1000 templates and am looking for help in setting up the >> cache settings in WebMacro.properties. Can some one please guide me. >> >> Thanks. >> Nikhil > > >-- >Lane Sharman >Providing Private and SPAM-Free Email >http://www.opendoors.com >858-755-2868 > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click