From 41039db1d5c71b2500013a90d55a5b93cdd8e6dc Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 29 Jul 2020 12:40:16 +1200 Subject: [PATCH] Remove duplicate cache flush As the comment points out CRM_ACL_BAO_Cache::resetCache is also called in CRM_Utils_System::flushCache so we are running a query that is inclined to lock tables an extra time for no reason --- CRM/Core/BAO/Cache.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CRM/Core/BAO/Cache.php b/CRM/Core/BAO/Cache.php index a13a6fee85..16b98a6011 100644 --- a/CRM/Core/BAO/Cache.php +++ b/CRM/Core/BAO/Cache.php @@ -247,11 +247,6 @@ class CRM_Core_BAO_Cache extends CRM_Core_DAO_Cache { * Cleanup ACL and System Level caches */ public static function resetCaches() { - // also reset ACL Cache - // @todo why is this called when CRM_Utils_System::flushCache() does it as well. - CRM_ACL_BAO_Cache::resetCache(); - - // also reset memory cache if any CRM_Utils_System::flushCache(); } -- 2.25.1