From ec87a877a9b1c3692583801c4d952fd4100cc60f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 21 Jun 2018 01:23:20 -0700 Subject: [PATCH] CRM_Core_PseudoConstant - Use PSR-16 compliant cache key --- CRM/Core/PseudoConstant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 81bdb6f232..3392a8e371 100644 --- a/CRM/Core/PseudoConstant.php +++ b/CRM/Core/PseudoConstant.php @@ -536,7 +536,7 @@ class CRM_Core_PseudoConstant { $key = 'id', $force = NULL ) { - $cacheKey = "CRM_PC_{$name}_{$all}_{$key}_{$retrieve}_{$filter}_{$condition}_{$orderby}"; + $cacheKey = CRM_Core_BAO_Cache::cleanKey("CRM_PC_{$name}_{$all}_{$key}_{$retrieve}_{$filter}_{$condition}_{$orderby}"); $cache = CRM_Utils_Cache::singleton(); $var = $cache->get($cacheKey); if ($var && empty($force)) { -- 2.25.1