Removed cache rebuild from the GroupContact
authorLisa Marie Maginnis <lisam@fsf.org>
Mon, 21 Sep 2015 17:18:43 +0000 (13:18 -0400)
committerLisa Marie Maginnis <lisam@fsf.org>
Mon, 21 Sep 2015 17:18:43 +0000 (13:18 -0400)
CRM/Contact/BAO/Contact.php
CRM/Contact/BAO/GroupContact.php

index e7050a73d80c10387f0c8f6d766d68f87292b42e..07afc15b9f1a39ef38f90895d50ca7265d749f3f 100644 (file)
@@ -438,7 +438,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) {
@@ -1815,7 +1816,8 @@ ORDER BY civicrm_email.is_primary DESC";
     }
 
     // reset the group contact cache for this group
-    CRM_Contact_BAO_GroupContactCache::remove();
+    // HACK: Dave disabled this on 12/09/2014 due to a crazy amount of lock wait timeouts on cache tables, causing donations to fail.
+    //CRM_Contact_BAO_GroupContactCache::remove();
 
     if ($editHook) {
       CRM_Utils_Hook::post('edit', 'Profile', $contactID, $params);
index f39d7559c4d3a6fe4fe308d0c730418a99d646e4..85e655e15cb9622aa83a72b1dbc9cc61431b7522 100644 (file)
@@ -153,12 +153,14 @@ 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)
     // if this group is being used as a smart group
-    CRM_Contact_BAO_GroupContactCache::remove();
+    // HACK: Dave had to disable this, too!
+    //CRM_Contact_BAO_GroupContactCache::remove();
 
     CRM_Utils_Hook::post('create', 'GroupContact', $groupId, $contactIds);