Add job to cleanup acl_cache table, add setting to disable opportunistic flushing
This is the same approach we use for smart groups - ie instead of cleaning up the cache on every contact edit there is a setting that allows for it to be done in a cron (or never if the cron is not enabled)
I am separately looking into cleaning up the caching but I think this can & should be done independent of cleanup (it can evolve appropriately with the cleanup)
Edited by eileen