Cache context ignores request attribute changes

Created on 24 April 2025, 24 days ago

Problem/Motivation

Coming from 📌 Append views display type to element name Active :

Lupus CE renderer correctly adds this cache contexts:
'url.query_args:_content_format',
'url.query_args:_select',

But that's apparently not enough, since the content-format can be set via request attribute as well - as done by lupus_decoupled_ce_api.

Steps to reproduce

see # 📌 Append views display type to element name Active

Proposed resolution

That means, lupus_ce_renderer should expose this is a new cache context which works like getContentFormatFromRequest() method.

Then we can replace our url.query_args._content_format cache context with the new cache context.

🐛 Bug report
Status

Active

Version

2.3

Component

Code

Created by

🇦🇹Austria fago Vienna

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