Skip to content

Cache not invalidated after customer login — outdated content shown #40039

@antoniocarboni

Description

@antoniocarboni

Preconditions and environment

Magento version: 2.4.8+
PHP version: 8.3
Full Page Cache: [built-in]

Steps to reproduce

  1. Enable all caches
  2. Navigate some pages
  3. Login as a customer
  4. Navigate previously visited pages

Expected result

Dynamic elements related to the user’s state should be flushed from the cache (e.g., the header should only display the My Account dropdown).

Image

Actual result

These pages (except for the one the customer is redirected to) display elements for guests, such as the login/register links in the header.
PS: This problem becomes more important with custom content related to the logger user state.

Image

Additional information

Maybe is related to this issue?
#40007

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.8Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions