From 0f51c75157ca87e3cd206fefb75a475261003f18 Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Thu, 28 Dec 2017 16:15:14 +0100 Subject: [PATCH] replaced vsprintf to implode --- lib/Cake/Cache/CacheEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Cache/CacheEngine.php b/lib/Cake/Cache/CacheEngine.php index bd236ae5f0c..3e2c25632cd 100644 --- a/lib/Cake/Cache/CacheEngine.php +++ b/lib/Cake/Cache/CacheEngine.php @@ -181,7 +181,7 @@ public function key($key) { $prefix = ''; if (!empty($this->_groupPrefix)) { - $prefix = md5(vsprintf($this->_groupPrefix, $this->groups())); + $prefix = md5(implode('_', $this->groups())); } $key = preg_replace('/[\s]+/', '_', strtolower(trim(str_replace(array(DS, '/', '.'), '_', strval($key)))));