config_pages_field twig filter doesn't include entity cache

Created on 13 May 2025, 3 days ago

Problem/Motivation

The config_pages_field twig filter doesn't include the config page tags, which causes an issue when the field value doesn't get updated for users when it's changed on the admin page.

Steps to reproduce

  1. Create a config page with a field.
  2. Render this field in some twig using the config_pages_field twig filter.
  3. Visit the page that contains this twig file with the anonymous user.
  4. Update the config page field value and save the config page.
  5. Open the same page as the anonymous user.
  6. Observe that the field value didn't change.

Proposed resolution

Add the config page cacheable metadata to the output render array.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine alt.dev

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