SEC-1054: Add method "clear" to interface AclCache #1305

Closed
spring-issuemaster opened this Issue Dec 9, 2008 · 1 comment

1 participant

@spring-issuemaster

Martin Renner (Migrated from SEC-1054) said:

Sometimes it would be nice to be able to clear the whole ACL cache.

E.g. we have our own implementation of an extended AclService which allows bulk operations. In case of an exception it is quite cumbersome to clear all given ACLs and their children (to be tx aware). Instead, it would be nice to clear the whole cache.

Therefore the interface AclCache should get a new method


void clearCache();

and its sole implementation EhCacheBasedAclCache would implement the new method like this:


public void clearCache() {
    cache.removeAll();
}


    
@spring-issuemaster

Luke Taylor said:

Retrospective comment: Makes sense - added as requested.

@spring-issuemaster spring-issuemaster added this to the 3.0.0 M1 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment