diff --git a/CRM/Utils/Cache.php b/CRM/Utils/Cache.php index 358f260181e9..af2bb835753b 100644 --- a/CRM/Utils/Cache.php +++ b/CRM/Utils/Cache.php @@ -169,6 +169,10 @@ public static function getCacheSettings($cachePlugin) { public static function create($params = array()) { $types = (array) $params['type']; + if (!empty($params['name'])) { + $params['name'] = CRM_Core_BAO_Cache::cleanKey($params['name']); + } + foreach ($types as $type) { switch ($type) { case '*memory*':