Reduce cache bypasses
authoreileen <emcnaughton@wikmedia.org>
Wed, 22 May 2019 01:12:53 +0000 (13:12 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 23 May 2019 22:55:05 +0000 (10:55 +1200)
commit1203c8dfbbdbb336848b62ae740b12a4d2373f2e
tree63352bde2da91da47e6093a0041c0ea2d247e793
parentee69d5aadda8537f7132b5f90097d1ed30687897
Reduce cache bypasses

We have been running this patch in production for some months. When you load up a contribution edit page
(for example) the custom data metadata is loaded without hitting the cache. This means that
unnecessary queries are done. The only reason to bypass the cache would be that it is stale
or parameter dependent. However, the staleness is/ should be dealt with when editing custom
fields & if it is not then there will be other impacts. The entity id is NOT passed into the part of
the code that goes into the cached value
CRM/Custom/Form/CustomData.php