>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]

Reply via email to