Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.6
-
None
-
None
-
Freemarker
Description
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.