Skip to content
Permalink
Browse files

Makes the cache key shorter by using md5()

  • Loading branch information...
bancer committed Dec 28, 2017
1 parent 92caf71 commit 7ae84e3d5d1bd004a6c4e1cae3fa2be430f8b13a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Cache/CacheEngine.php
@@ -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)))));

0 comments on commit 7ae84e3

Please sign in to comment.
You can’t perform that action at this time.