From 1937cd696632b60b50f0b7a72a52cdd160de6a0f Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Tue, 14 Sep 2021 10:36:33 +0100 Subject: [PATCH] flushCaches should respect permitCacheFlushMode --- CRM/Contact/BAO/GroupContactCache.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index f9121049df..882daedba2 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -248,6 +248,10 @@ WHERE id IN ( $groupIDs ) * clear. */ protected static function flushCaches() { + if (!CRM_Core_Config::isPermitCacheFlushMode()) { + return; + } + try { $lock = self::getLockForRefresh(); } -- 2.25.1