dev/core#2477 Add setting to allow opportunistic cache flushing for acls
authoreileen <emcnaughton@wikimedia.org>
Sun, 28 Mar 2021 20:37:42 +0000 (09:37 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 28 Mar 2021 20:43:57 +0000 (09:43 +1300)
commit6776968344ac231d0e6105a2f7a64ecc1c66589e
tree166344c85f97bf6ab8ecd83f676dc26d61ea65c4
parent21f7fb733f34d0baf092ddf80897e193b3cdeaa7
dev/core#2477 Add setting to allow opportunistic cache flushing for acls

This adds the same mechanism as the group contact cache to reduce site contention.
A job api is also added which people can optionally configure.

It would be especially worth setting on sites that do not use ACLs at all
CRM/ACL/BAO/Cache.php
CRM/Contact/BAO/Contact/Utils.php
api/v3/Job.php
settings/Core.setting.php