Makes the cache key shorter by using md5()

This commit is contained in:
Val Bancer 2017-12-28 10:02:35 +01:00 committed by GitHub
parent 92caf71db5
commit 7ae84e3d5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)))));