From 0d4bad43668917aae336c94f2fa0897ea487abbc Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Mon, 21 Sep 2015 13:18:43 -0400 Subject: [PATCH] Removed cache rebuild from the GroupContact --- CRM/Contact/BAO/Contact.php | 3 ++- CRM/Contact/BAO/GroupContact.php | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index a90501235b..20151a9b62 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -437,7 +437,8 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact { // since resetting and // rebuilding cache could be expensive (for many contacts). We might come out with better // approach in future. - CRM_Contact_BAO_Contact_Utils::clearContactCaches($contact->id); + // HACK: Dave did this due to many donations and other requests failing due to acl_cache table locks + // CRM_Contact_BAO_Contact_Utils::clearContactCaches($contact->id); } if ($invokeHooks) { diff --git a/CRM/Contact/BAO/GroupContact.php b/CRM/Contact/BAO/GroupContact.php index 69b427f649..5c6a888844 100644 --- a/CRM/Contact/BAO/GroupContact.php +++ b/CRM/Contact/BAO/GroupContact.php @@ -250,7 +250,8 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact { // also reset the acl cache $config = CRM_Core_Config::singleton(); if (!$config->doNotResetCache) { - CRM_ACL_BAO_Cache::resetCache(); + // HACK: Dave commented this out on 12/09/2014 due to lock wait timeouts on the acl cache that caused donations to fail. + //CRM_ACL_BAO_Cache::resetCache(); } // reset the group contact cache for all group(s) @@ -261,7 +262,8 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact { // same effect as the remove call. The reservation about that is that it is no more aggressive for the group that // we know is altered than for all the others, or perhaps, more the point with it's parents & groups that use it in // their criteria. - CRM_Contact_BAO_GroupContactCache::remove(); + // HACK: Dave had to disable this, too! + //CRM_Contact_BAO_GroupContactCache::remove(); CRM_Utils_Hook::post($op, 'GroupContact', $groupId, $contactIds); -- 2.25.1