Problem/Motivation

core/modules/node/config/optional/views.view.archive.yml includes both url and url.query_args as cache contexts for the three displays of the view.

url is the parent of url.query_args, so url.query_args is redundant here.

I did not dig any further to determine if url is too broad and if only url.query_args should remain, or if url is necessary and url.query_args should be removed.

I don't know if that is a sign that something could be changed within Views itself, to optimize such configurations automatically.

Steps to reproduce

Read core/modules/node/config/optional/views.view.archive.yml.

Proposed resolution

Optimize the cache contexts for this view, and possibly for others using similar parameters.

Remaining tasks

Dig further to understand why both cache contexts are present and how they ended up in the configuration.
Determine if something can be optimized within Views itself.

User interface changes

None.

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

Comments

arousseau created an issue. See original summary.

cilefen’s picture

Component: views.module » node system
Issue summary: View changes

I updated the issue summary to include the path to the canonical installation configuration file. Also, I am moving this issue to the node system.