Remove extraneous opportunistic cache flush.
authoreileen <emcnaughton@wikimedia.org>
Thu, 23 Jul 2020 03:57:48 +0000 (15:57 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 24 Jul 2020 02:32:43 +0000 (14:32 +1200)
The opportunistic cache flush is already called by contact create and then again by each of the places
where the contact might be added to a group so this is just extraneous

CRM/Contact/BAO/Contact.php

index addab4f508397db1d5ba5ae0473cacb904c8e992..669efc366714db76d0edf94160856a096569c175 100644 (file)
@@ -2053,8 +2053,6 @@ ORDER BY civicrm_email.is_primary DESC";
       CRM_Contact_BAO_GroupContact::addContactsToGroup($contactIds, $addToGroupID);
     }
 
-    CRM_Contact_BAO_GroupContactCache::opportunisticCacheFlush();
-
     if ($editHook) {
       CRM_Utils_Hook::post('edit', 'Profile', $contactID, $params);
     }