diff --git a/src/Services/Cache/UserCacheKeyGenerator.php b/src/Services/Cache/UserCacheKeyGenerator.php index ac5487a5..b9ff57c4 100644 --- a/src/Services/Cache/UserCacheKeyGenerator.php +++ b/src/Services/Cache/UserCacheKeyGenerator.php @@ -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