From ddd2e3cb587986c897ef401c234606a9a45db14f Mon Sep 17 00:00:00 2001 From: scardinius Date: Wed, 7 Apr 2021 10:38:51 +0200 Subject: [PATCH] dev/core#2516 Invalidate only smart groups --- CRM/Contact/BAO/GroupContactCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index 3e75e85133..f8f45dbe83 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -578,7 +578,7 @@ ORDER BY gc.contact_id, g.children public static function invalidateGroupContactCache($groupID) { CRM_Core_DAO::executeQuery("UPDATE civicrm_group SET cache_date = NULL - WHERE id = %1", [ + WHERE id = %1 AND saved_search_id IS NOT NULL", [ 1 => [$groupID, 'Positive'], ]); } -- 2.25.1