Skip to content

Commit

Permalink
Use config.getProperty() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Mar 27, 2023
1 parent 4822dce commit eafd6e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class FormFieldsTemplateService {

private boolean shouldCache() {
// If not explicitly specified, there is no template caching
Boolean cacheDisabled = grailsApplication?.config?.grails?.plugin?.fields?.disableLookupCache
Boolean cacheDisabled = grailsApplication?.config?.getProperty("grails.plugin.fields.disableLookupCache", Boolean)
return !cacheDisabled
}

Expand Down

0 comments on commit eafd6e8

Please sign in to comment.