Share

FreeMarker

Tracker: Feature Requests

5 TemplateCache does not cache negative hits... - ID: 1780882
Last Update: Comment added ( ddekany )

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


Nobody/Anonymous ( nobody ) - 2007-08-24 09:44

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2008-05-08 14:01
Sender: ddekanyProject Admin


Improvement released with 2.3.13.


Date: 2008-04-02 13:24
Sender: szegediaProject AdminAccepting Donations


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


Log in to comment.

Attached File ( 1 )

Filename Description Download
TemplateCache.java Suggested improvement Download

Changes ( 3 )

Field Old Value Date By
status_id Open 2008-05-08 14:01 ddekany
close_date - 2008-05-08 14:01 ddekany
File Added 242622: TemplateCache.java 2007-08-24 09:44 nobody