leadtrip opened a new issue, #14352:
URL: https://github.com/apache/grails-core/issues/14352

   In grails 2, applying cache true in a parent domain class's mapping block 
would propagate 2nd level caching through to the child domains, this is not the 
case with grails 4.
   This results in attempted retrievals and misses from the cache for the child 
domain.
   The linked sample project displays this behaviour by setting up a Parent and 
Child domain & calls to both dynamic finder and criteria queries through 
loading of the index page.
   The logged session statistics show that the domain details never seem to be 
put into the cache.
   
   A non-abstract domain (StandardThing) is also configured to ensure the 
correct behaviour which can be accessed through the relevant URI.
   
   Sample app
   https://github.com/leadtrip/grail4AbstractCache


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to