User block in header is cached globally – username does not update per user

Created on 13 June 2025, 24 days ago

Problem/Motivation

There is a caching issue affecting the user block displayed in the site header. It appears that the block is not being cached per user, which causes incorrect data to be shown after login.

As demonstrated in the attached video, the username shown in the header reflects the previous user, not the currently logged-in one.

Steps to reproduce

1. Create two user accounts with the “authenticated user” role only. Use different names for each.
2. Log in as the first user.
3. Log out and log in as the second user.
4. The header still displays the name of the first user instead of the current one.

Expected behavior:

The user block in the header should be dynamically rendered per user, and reflect the correct username after login.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024