mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-3189 add a way to clear FreeMarker templates
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@802949 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+8
@@ -216,4 +216,12 @@ public class FreemarkerTemplateEngine extends BaseTemplateEngine {
|
||||
public void setCacheTemplates(String cacheTemplates) {
|
||||
freemarkerCaching = "true".equals(cacheTemplates);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear the templates and missing templates cache
|
||||
*/
|
||||
public void clearTemplatesCache() {
|
||||
templates.clear();
|
||||
missingTemplates.clear();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user