TypeLinkManger and RelationLinkManager use wrong cache tags, leads to hrd errors

Created on 8 August 2025, 16 days ago

Problem/Motivation

TypeLinkManger and RelationLinkManager store hal:links in cache permanently. But the cache tags are not sufficient.
If a new bundle gets defined, the type link cache doesn't get invalidated.
For example the webform module creates a bundle of the webform_submission entity type per webform.
Serializing of deserializing such an entity leads to errors until you clear all caches globally.

Steps to reproduce

Proposed resolution

Add the required cache tags like also done in core!

https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co...
https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co...

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany mkalkbrenner 🇩🇪

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