Skip to content

Commit ad2c54d

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

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ 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);
3234
$cacheId = preg_replace('/([^a-zA-Z0-9_]{1,1})/', '_', $cacheId);
3335
if (isset($this->_options['cache_id_prefix'])) {
3436
$cacheId = $this->_options['cache_id_prefix'] . $cacheId;

0 commit comments

Comments
 (0)