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.
Log in to post a comment.