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.

Reply via email to