From 2fbe6c110e059e11ef40235f88cf8706951c9086 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 5 Aug 2022 09:57:27 +1200 Subject: [PATCH] Fix cache miss in FastArrays on 'has()' --- CRM/Utils/Cache/FastArrayDecorator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Utils/Cache/FastArrayDecorator.php b/CRM/Utils/Cache/FastArrayDecorator.php index 21efcbbac7..00e2c24697 100644 --- a/CRM/Utils/Cache/FastArrayDecorator.php +++ b/CRM/Utils/Cache/FastArrayDecorator.php @@ -115,6 +115,10 @@ class CRM_Utils_Cache_FastArrayDecorator implements CRM_Utils_Cache_Interface { } public function has($key) { + CRM_Utils_Cache::assertValidKey($key); + if (array_key_exists($key, $this->values)) { + return TRUE; + } return $this->delegate->has($key); } -- 2.25.1