From eab035f99fe38828242a5721572289b04b10be4f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 8 Oct 2022 11:02:43 +0100 Subject: [PATCH] dev/core#3814 Use fastArray cache for extension system This reduces repetitive array hits on the Redis or other cache as they are stored in the php layer. The Redis hits are not slow - but the serializing & unserializing is so this is a performance improvement --- CRM/Extension/System.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Extension/System.php b/CRM/Extension/System.php index 99a920de37..4361314395 100644 --- a/CRM/Extension/System.php +++ b/CRM/Extension/System.php @@ -251,7 +251,10 @@ class CRM_Extension_System { } /** + * Get the cache object. + * * @return CRM_Utils_Cache_Interface + * @throws \CRM_Core_Exception */ public function getCache() { if ($this->cache === NULL) { @@ -261,6 +264,7 @@ class CRM_Extension_System { 'name' => $cacheGroup, 'type' => ['*memory*', 'SqlGroup', 'ArrayCache'], 'prefetch' => TRUE, + 'withArray' => 'fast', ]); } return $this->cache; -- 2.25.1