EVA views pollute the whole page with the view's cache contexts - should use a lazy builder

Created on 18 January 2021, almost 4 years ago
Updated 15 August 2024, 3 months ago

Problem/Motivation

The cache contexts of the view shown by EVA bubbles to the whole page. This means that if the view has cache contexts that make it uncacheable (such as a 'current user' argument), the whole page becomes uncacheable.

Steps to reproduce

1. Make a view with an argument that takes the 'current user' default value
2. Show it in an EVA on a node.

The node's page then gets the debug header to show that Dynamic Page Cache considers it to be uncacheable.

Proposed resolution

Use a lazy builder to output the view.

Remaining tasks

User interface changes

API changes

Data model changes

The render structure of the EVA will change because the lazy builder can't return the top-level view element because of πŸ› Lazy builder broken (#type defaults not loaded) Needs work .

πŸ› Bug report
Status

Needs work

Version

3.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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