Boost Cache operations on entity CRUD

Created on 25 June 2022, over 2 years ago
Updated 1 June 2023, over 1 year ago

Problem/Motivation

When entities are created or changed the cached data should follow.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany c-logemann Frankfurt/M, Germany

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

Comments & Activities

Not all content is available!

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

  • 🇩🇪Germany c-logemann Frankfurt/M, Germany

    Just thinking about the fact that we are only caching pages by path. So when we operate on entity crud we need to figure out which entity path and which aliases are involved. And maybe we should also operate on alias operations itself (maybe in an own issue).

  • 🇩🇪Germany c-logemann Frankfurt/M, Germany

    Regarding event subscription

    I changed my mind to use event subscriptions when they are faster than hooks. This means that there should be I "direct" event in this case the core entity module or something deeper in core or symfony itself.
    It seems that there is currently only the EntityTypeEvent named above in core which works with type events and not the entity changes itself. For this there is a contrib Module entity_events which using hooks and providing events for this. This doen't make things faster. For now it's better to use entity hooks and when core is extended in this direction we can upgrade this. But when you take a look to the following long lasting issue, this will not come before Drupal 11: 📌 Add events for matching entity hooks Needs work

Production build 0.71.5 2024