Skip to content

Commit bed5f9e

Browse files
committed
Fixed a bug due to use Configuration Properties: GroovyPagesProperties
See gh-663 Closes gh-713
1 parent 5293487 commit bed5f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grace-plugin-gsp/src/main/groovy/org/grails/plugins/web/GroovyPagesAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public GroovyPagesTemplateEngine groovyPagesTemplateEngine(
277277
boolean developmentMode = Environment.isDevelopmentEnvironmentAvailable();
278278
boolean gspEnableReload = config.getProperty(Settings.GSP_ENABLE_RELOAD, Boolean.class, groovyPagesProperties.getReload().isEnabled());
279279
boolean enableReload = env.isReloadEnabled() || gspEnableReload || (developmentMode && env == Environment.DEVELOPMENT);
280-
boolean enableCacheResources = config.getProperty(Settings.GSP_DISABLE_CACHING_RESOURCES, Boolean.class, groovyPagesProperties.getCache().isEnabled());
280+
boolean enableCacheResources = !config.getProperty(Settings.GSP_DISABLE_CACHING_RESOURCES, Boolean.class, !groovyPagesProperties.getCache().isEnabled());
281281

282282
GroovyPagesTemplateEngine groovyPagesTemplateEngine = new GroovyPagesTemplateEngine();
283283

0 commit comments

Comments
 (0)