Просмотр исходного кода

Ticket #4409 - Timeline: item cache must use bx_site_hash in actual key (file) name.

AntonLV 3 лет назад
Родитель
Сommit
796594e038
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/boonex/timeline/classes/BxTimelineConfig.php

+ 1 - 1
modules/boonex/timeline/classes/BxTimelineConfig.php

@@ -636,7 +636,7 @@ class BxTimelineConfig extends BxBaseModNotificationsConfig
 
 
     public function getCacheItemKey($iId, $sPostfix = '')
     public function getCacheItemKey($iId, $sPostfix = '')
     {
     {
-        return $this->getPrefix('cache_item') . $iId . (bx_is_mobile() ? '_m' : '') . '_r' . bx_get_device_pixel_ratio() . '_' . (!empty($sPostfix) ? '_' . $sPostfix : '') . '.php';
+        return $this->getPrefix('cache_item') . $iId . (bx_is_mobile() ? '_m' : '') . '_r' . bx_get_device_pixel_ratio() . (!empty($sPostfix) ? '_' . $sPostfix : '') . '_' . bx_site_hash() . '.php';
     }
     }
 
 
     public function getCacheHotKey()
     public function getCacheHotKey()