Ensure cache bubbleable metadata propagates back up after rendering

Created on 24 February 2025, about 1 month ago

Problem/Motivation

When rendering the inner fields, it doesn't propagate the relevant cache tags up.

This is more relevant when used with the views_field_view which can be used to include custom views which contain their own cache tags, which should cause the parent view cache to be invalidated when something within the child view is changed.

Steps to reproduce

Create a view with field (e.g. views_field_view) which has a special cache tag attached to it, this special cache tag will not be included in the final response.

This is because the cache data is attached to the current RenderContext, but later lost since it's not applied back to the final render array.

Proposed resolution

Pop and apply any of the relevant render context back to the final view.

Remaining tasks

Provide issue fork/patch

User interface changes

N/A

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

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