Added the current uncommited changes to production code, and rebased to 4.6.8
[civicrm-core.git] / CRM / Contact / BAO / Contact.php
index f1fb6929d82ea39bbe3ff8818f790d080fecfe17..ed863af5b9473bdd1aa1e34402078fc00c9e6069 100644 (file)
@@ -2044,7 +2044,9 @@ ORDER BY civicrm_email.is_primary DESC";
       CRM_Contact_BAO_GroupContact::addContactsToGroup($contactIds, $addToGroupID);
     }
 
-    CRM_Contact_BAO_GroupContactCache::opportunisticCacheFlush();
+    // reset the group contact cache for this group
+    // 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::opportunisticCacheFlush();
 
     if ($editHook) {
       CRM_Utils_Hook::post('edit', 'Profile', $contactID, $params);