Minor tweak to code that looks for development build in configuration properties
This commit is contained in:
parent
d82753d4f4
commit
1cb7a1f071
1 changed files with 3 additions and 1 deletions
|
@ -121,7 +121,9 @@ public class FreeMarkerHttpServlet extends VitroHttpServlet {
|
|||
Configuration config = new Configuration();
|
||||
|
||||
String buildEnv = ConfigurationProperties.getProperty("Environment.build");
|
||||
if (buildEnv != null && buildEnv.equals("development")) {
|
||||
log.debug("Current build environment: " + buildEnv);
|
||||
if ("development".equals(buildEnv)) {
|
||||
log.debug("Disabling FreeMarker template caching in development build.");
|
||||
config.setTemplateUpdateDelay(0); // no template caching in development
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue