Skip to content

View modes are cached as a whole. Breaks embargo for IPs #412

@DiegoPino

Description

@DiegoPino

What?

Even if we managed to skip the Page Cache & the dynamic cache, Drupal still caches the Render arrays. And even if we pass for each field max-age=0 it still does not resolve/permeate up and caches the hell out of everything.

The solution I found is tricky and acts on the last minute when the Entity Type renderer returns a View Mode/Display Mode array built. We call again a statically cached version of the Resolver and swap there the max-age=0 at the last minute on the top...

GOSH

Metadata

Metadata

Assignees

Labels

Drupal 10Upgrade economyEmbargoesHeart Shaped boxesField FormatterThe thing that glues the pieces and adds glitterexternal bugIt is not us, it is them

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions