You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the GrailsEhcacheCacheManager cannot find the requested cache it creates a default cache with it's own defined configuration setting heap(10).
if the application's ehcache configuration has defined a cache-template, the GrailsEhcacheCacheManager should use that configuration in preference. The application should be able to define what it wants as a default configuration.
The default of 10 heap entries came as a surprise to us when our Cacheable method wasn't performing as expected. Nowhere in the documentation does it state that the plugin will default to 10 entries when an explicit config for the cache is not defined. The documentation states "By default, the only provided configuration strategy supports reading an XML file to configure Ehcache." so it is reasonable for a developer to assume that the cache-template directives in the XML will also be obeyed.
The text was updated successfully, but these errors were encountered:
When the GrailsEhcacheCacheManager cannot find the requested cache it creates a default cache with it's own defined configuration setting heap(10).
if the application's ehcache configuration has defined a cache-template, the GrailsEhcacheCacheManager should use that configuration in preference. The application should be able to define what it wants as a default configuration.
The default of 10 heap entries came as a surprise to us when our Cacheable method wasn't performing as expected. Nowhere in the documentation does it state that the plugin will default to 10 entries when an explicit config for the cache is not defined. The documentation states "By default, the only provided configuration strategy supports reading an XML file to configure Ehcache." so it is reasonable for a developer to assume that the cache-template directives in the XML will also be obeyed.
The text was updated successfully, but these errors were encountered: