From 69fb41da4566bbda627c2feda3e5eb28958759b2 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 30 Sep 2020 22:04:43 +1300 Subject: [PATCH] Fix cache bypass If the contact is not impacted by any acls then ids will be an empty array. However, currently an empty array is treated as 'uncached' rather than 'cached by empty' which would be represented by null --- CRM/ACL/BAO/ACL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/ACL/BAO/ACL.php b/CRM/ACL/BAO/ACL.php index 583b3dc0ce..ec8666164d 100644 --- a/CRM/ACL/BAO/ACL.php +++ b/CRM/ACL/BAO/ACL.php @@ -480,7 +480,7 @@ SELECT g.* $cacheKey = CRM_Utils_Cache::cleanKey("$tableName-$aclKeys"); $cache = CRM_Utils_Cache::singleton(); $ids = $cache->get($cacheKey); - if (!$ids) { + if (!is_array($ids)) { $ids = []; $query = " SELECT a.operation, a.object_id -- 2.25.1