Przeglądaj źródła

#5239 Content cache: 'per_acl' menu cache should take into account operators as well

Alex Trofimov 1 rok temu
rodzic
commit
1ffb9a1cb3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      template/scripts/BxBaseMenu.php

+ 1 - 1
template/scripts/BxBaseMenu.php

@@ -77,7 +77,7 @@ class BxBaseMenu extends BxDolMenu
                     break;                
                     break;                
                 case 'per_acl': // separate cache for each ACL
                 case 'per_acl': // separate cache for each ACL
                     $aAcl = BxDolAcl::getInstance()->getMemberMembershipInfo(bx_get_logged_profile_id());
                     $aAcl = BxDolAcl::getInstance()->getMemberMembershipInfo(bx_get_logged_profile_id());
-                    $sCacheKey = "menu_{$this->_sObject}" . "_acl" . $aAcl['id'];
+                    $sCacheKey = "menu_{$this->_sObject}" . "_acl" . $aAcl['id'] . '_a' . (isAdmin() ? 1 : 0);
                     break;
                     break;
                 default:
                 default:
                     trigger_error("Unknown cache mode for menu ({$this->_sObject}): {$this->_aObject['cache']}", E_USER_ERROR);
                     trigger_error("Unknown cache mode for menu ({$this->_sObject}): {$this->_aObject['cache']}", E_USER_ERROR);