Skip to content

Commit

Permalink
replaced vsprintf to implode
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer committed Dec 28, 2017
1 parent 7ae84e3 commit 0f51c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Cache/CacheEngine.php
Expand Up @@ -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)))));
Expand Down

0 comments on commit 0f51c75

Please sign in to comment.