mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #11581 from bancer/issue-11131-long-cache-key
Hash group cache keys to prevent key overflows in some cache engines
This commit is contained in:
commit
ab272b09c7
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ abstract class CacheEngine {
|
|||
|
||||
$prefix = '';
|
||||
if (!empty($this->_groupPrefix)) {
|
||||
$prefix = vsprintf($this->_groupPrefix, $this->groups());
|
||||
$prefix = md5(implode('_', $this->groups()));
|
||||
}
|
||||
|
||||
$key = preg_replace('/[\s]+/', '_', strtolower(trim(str_replace(array(DS, '/', '.'), '_', strval($key)))));
|
||||
|
|
Loading…
Reference in a new issue