How to enable EHCache-based ACL caching in Grails Spring Security ACL Plugin?

We use the Grails Spring Security ACL plugin to manage ACLs in our domain classes. Sometimes we need to display lists of these domain classes that must respect ACLs. The problem is that after several hundred items are listed, checking the ACL of each item makes displaying such lists painfully slow.

I saw a class there EhCacheBasedAclCachethat seems to provide a solution to this problem, but I did not find any documentation on how to configure it either in the official documentation of the plugin or when searching on Google.

Is there any idea where to look, or has anyone configured ACL caching using Grails-Spring-Security-Acl before?

Edit: We use grails-spring-security-acl v1.1andgrails-spring-security-core v1.1.2

+3
source share

All Articles