Breadcrumb render cache not invalidated when entity label changes

Created on 4 November 2015, about 9 years ago
Updated 9 July 2024, 6 months ago

Problem/Motivation

Cache of entities are not invalidated when the entity label changes.

Steps to reproduce for nodes & breadcrumbs (from #3):

  1. Create a node with title 'Title A'.
  2. Change the title to 'Title B' and check the 'Create new revision'.
  3. Open the Revisions tab > Breadcrumb shows the right title (Title B).
  4. Change the title to 'Title C' and check the 'Create new revision'.
  5. Open the Revisions tab.

Expected: The title in the breadcrumb is 'Title C'.
Actual: the title in the breadcrumb is 'Title B'.

Steps to reproduce for users (from #48):

  1. Log in
  2. Edit your username and save.
  3. Return to the edit screen for your user account.

Expected: Breadcrumb shows your new username
Actual: You'll see your old username is still utilised in the breadcrumb.

Proposed resolution

Allow attaching cacheability metadata to titles with a new CacheableTitleResolverInterface that returns a static or dynamic title (with cacheable metadata).

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Entity 

Last updated about 15 hours ago

Created by

🇳🇴Norway matsbla

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024