From fa127cd15866484d3befff1c97b481242fbda5c9 Mon Sep 17 00:00:00 2001 From: Rich Lott / Artful Robot Date: Fri, 1 Sep 2023 08:21:56 +0100 Subject: [PATCH] Remove smart group profiling during populateTemporaryTableWithContactsInGroups --- CRM/Contact/BAO/GroupContactCache.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index cde36e17b7..47d0c0cbd6 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -662,7 +662,6 @@ ORDER BY gc.contact_id, g.children ->setMemory(); $lockedGroups = self::getLocksForRefreshableGroupsTo($smartGroups); if (!empty($lockedGroups)) { - $startTime = microtime(TRUE); self::buildGroupContactTempTable($lockedGroups, $groupContactsTempTable); // Note in theory we could do this transfer from the temp // table to the group_contact_cache table out-of-process - possibly by @@ -678,7 +677,7 @@ ORDER BY gc.contact_id, g.children // we could throw a try-catch around this line since best-effort would // be good enough & potentially improve user experience. self::clearGroupContactCache($lockedGroups); - self::updateCacheFromTempTable($groupContactsTempTable, $lockedGroups, $startTime); + self::updateCacheFromTempTable($groupContactsTempTable, $lockedGroups); self::releaseGroupLocks($lockedGroups); $groupContactsTempTable->drop(); } -- 2.25.1