Add a url.site.scheme cache context

Created on 10 January 2020, over 5 years ago
Updated 31 January 2023, about 2 years ago

Problem/Motivation

In some situations a cache context for the url scheme only is missing. All other contexts (e.g. url.site) have much higher cardinality on a multi-domain site, leading to cache clutter.

Proposed resolution

Trivial. Add a url.site.scheme cache context.

Remaining tasks

Code, review, commit.

User interface changes

None.

API changes

A new cache context.

Data model changes

None.

Release notes snippet

Drupal core now provides a url.site.scheme cache context. Use it when a response varies depending on if http or https is used.

Feature request
Status

Postponed: needs info

Version

10.1

Component
Cache 

Last updated 1 day ago

Created by

🇩🇪Germany geek-merlin Freiburg, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

    Based on the comments was it decided this should live in a contrib module?

  • 🇺🇸United States smustgrave

    So just following up if this should be closed?

  • 🇧🇪Belgium borisson_ Mechelen, 🇧🇪

    While I agree with #5 there would not be a big maintenance burden, in the 5 years since this comment was posted there did not seem to be a big interest by others. I would live to see popularity numbers from this based on a contrib module and we could use that to inform the need for this, because to me it still seems like a super small usecase.

    I will close this as won't fix for now.

Production build 0.71.5 2024