Wrong user info due to cache (is back !)

Created on 22 March 2023, over 1 year ago
Updated 27 March 2023, over 1 year ago

Problem/Motivation

As the title says, I found the same problem in the current version:
Two users login on the website, and the second one is greated by "Welcome user_1".

Proposed resolution

Changed the last return of file src/Plugin/Block/WelcomeUserNameBlock.php to :

return [
    '#theme' => 'welcome_username_login',
    '#content' => $content,
    '#cache' => [
         'max-age' => 0,
    ],
];

as previously mentioned.

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024