mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Makes the cache key shorter by using md5()
This commit is contained in:
parent
92caf71db5
commit
7ae84e3d5d
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ abstract class CacheEngine {
|
||||||
|
|
||||||
$prefix = '';
|
$prefix = '';
|
||||||
if (!empty($this->_groupPrefix)) {
|
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)))));
|
$key = preg_replace('/[\s]+/', '_', strtolower(trim(str_replace(array(DS, '/', '.'), '_', strval($key)))));
|
||||||
|
|
Loading…
Reference in a new issue