I wrote a struts2 caching implementation of the freemarker templates:
https://issues.apache.org/struts/browse/WW-1661
Freemarker wouldn't know how to cache the templates as well as struts2
does since we know how the templates are being used and whether or not
it is safe to cache them.
Tom
Claus Ibsen wrote:
>From the performance tuning page:
Copy the /template directory from the Struts 2 jar in your WEB_APP root.
Freemarker fails to properly cache templates when they are retrieved from the
classpath. Copying them to the WEB_APP root allows Freemarker to cache them
correctly. Freemarker looks at the last modified time of the template to
determine if it needs to reload the templates. Resources retrieved from the
classpath have no last modified time, so Freemarker will reload them on every
request.
Isn't it possible to file a JIRA to freemarker so they could improve freemarker
to let it be able to cache templates loaded from classpath?
I doubt many users know about copying resources from within struts2.jar to
their own folder. I think the best is that it just works out-of-the-box.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=53086&messageID=135504#135504
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]