TemplateCache does not cache negative hits...
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
I see from profiling results when using struts2 that a significant portion of the total page runtime is spent whithin freemarker looking for templates that do not exist (15-30% of total request processing time give or take some).
I believe the problem could be fixed by letting the TemplateCache also cache negative responses.
The enclosed code is a *suggestion* to how this may be solved. It is not tested.
kristianATzeniorDOTno
Suggested improvement
Logged In: YES
user_id=52489
Originator: NO
This is implemented now, and will appear in 2.3.13. If you're impatient, you can try a continuous integration build from
http://freemarker.org:8085/download/FM-BRANCH23/artifacts/build-59/Library/freemarker.jar
Logged In: YES
user_id=546667
Originator: NO
Improvement released with 2.3.13.