struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasper Rosenberg (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3189) Add support to clear template cache to FreemarkerTemplateEngine
Date Tue, 14 Jul 2009 15:30:58 GMT
Add support to clear template cache to FreemarkerTemplateEngine
---------------------------------------------------------------

                 Key: WW-3189
                 URL: https://issues.apache.org/struts/browse/WW-3189
             Project: Struts 2
          Issue Type: Improvement
    Affects Versions: 2.1.6
         Environment: Freemarker
            Reporter: Jasper Rosenberg
            Priority: Minor
             Fix For: 2.1.8


In FreemarkerTemplateEngine templates and missingTemplates are private so there is no way
to explicitly clear the cache should I need to reload files on demand in a production environment
(say via a JMX operation).

Both member variables are thread safe, so it should be easy as just adding a public "void
clearTemplateCache()" method which just calls clear() on both collections.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message