Skip to content

Commit

Permalink
Makes the cache key shorter by using md5()
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer committed Dec 28, 2017
1 parent 92caf71 commit 7ae84e3
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 = vsprintf($this->_groupPrefix, $this->groups());
$prefix = md5(vsprintf($this->_groupPrefix, $this->groups()));
}

$key = preg_replace('/[\s]+/', '_', strtolower(trim(str_replace(array(DS, '/', '.'), '_', strval($key)))));
Expand Down

0 comments on commit 7ae84e3

Please sign in to comment.