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

#5359 Content cache should include template in key name

Aleksandr T 9 месяцев назад
Родитель
Сommit
421e4c8475
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      inc/utils.inc.php

+ 1 - 1
inc/utils.inc.php

@@ -2854,7 +2854,7 @@ function bx_content_cache_key(string $sKey, bool $bPrefixOnly = false): string
 {
     if ($bPrefixOnly)
         return 'content_' . $sKey;
-    return 'content_' . $sKey . '_' . bx_lang_name() . '_' . bx_site_hash() . '.php';
+    return 'content_' . $sKey . '_' . bx_lang_name() . '_' . BxDolTemplate::getInstance()->getCode() . '_' . bx_site_hash() . '.php';
 }
 
 function bx_content_cache_obj(): object