Do not use the wrong language for trees when no user is logged in

This commit is contained in:
Jan Böhmer 2026-01-18 23:44:11 +01:00
parent cd7dbd5f7b
commit d0b827c2c3

View file

@ -57,7 +57,7 @@ class UserCacheKeyGenerator
//If the user is null, then treat it as anonymous user.
//When the anonymous user is passed as user then use this path too.
if (!($user instanceof User) || User::ID_ANONYMOUS === $user->getID()) {
return 'user$_'.User::ID_ANONYMOUS;
return 'user$_'.User::ID_ANONYMOUS . '_'.$locale;
}
//Use the unique user id and the locale to generate the key