Re: Implementing URLTemplateLoader and Template Caching
Attila Szegedi <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
On 2008.04.04., at 23:03, Daniel Dekany wrote: > Friday, April 4, 2008, 10:35:47 PM, jaybytez wrote: > >> It appears that as I run a test of like 8 calls through my >> Configuration getTemplate, I see the the call strace going into my >> custom >> URLTemplateLoader each time on each invocation, should it do that >> if the >> caching exists? > > It depends what method of it is called. For example if the update > delay is 0, then it will always re-check if the file was changed, > which of course requires calling the TemplateLoader. It also depends on whether you're able to present a meaningful last- modified timestamp (although it'd only matter once per update delay) Attila. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone