Skip to content

Commit 0aa0803

Browse files
author
Yuri Kovsher
committed
MAGETWO-39126: Cache Collisions for Static View Files Cache
1 parent ad2c54d commit 0aa0803

File tree

1 file changed

+1
-2
lines changed
  • lib/internal/Magento/Framework/Cache

1 file changed

+1
-2
lines changed

lib/internal/Magento/Framework/Cache/Core.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ class Core extends \Zend_Cache_Core
2929
protected function _id($cacheId)
3030
{
3131
if ($cacheId !== null) {
32-
$cacheId = str_replace('-', '__', $cacheId);
33-
$cacheId = str_replace('.', '___', $cacheId);
32+
$cacheId = str_replace('.', '__', $cacheId); //reduce collision chances
3433
$cacheId = preg_replace('/([^a-zA-Z0-9_]{1,1})/', '_', $cacheId);
3534
if (isset($this->_options['cache_id_prefix'])) {
3635
$cacheId = $this->_options['cache_id_prefix'] . $cacheId;

0 commit comments

Comments
 (0)