Skip to content

leadtrip/grail4AbstractCache

Repository files navigation

Grails 4 app which demonstrates an issue with 2nd level caching on domain hierarchies

2nd level caching is enabled in config.

The Parent domain has cache true configured in its mapping block, the Child domain extends Parent.

Run the app and check the logs when accessing http://localhost:8080/ which will run a number of dynamic finder and criteria queries resulting in cache misses and database access.

To ensure 2nd level caching is working & not broken for domains not involved in a hierarchy, navigate to http://localhost:8080/standardThing to view the output from a single domain with caching enabled exhibiting the expected behaviour with hits from the cache.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published