From 6d00fd797a47f90a709554d76469a7e459b4112e Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 23 Jul 2020 15:57:48 +1200 Subject: [PATCH] Remove extraneous opportunistic cache flush. 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index addab4f508..669efc3667 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -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); } -- 2.25.1