- 🇩🇪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