[PP-1] HtmlResponseSubscriber and DynamicPageCacheSubscriber should have negative priorities so that vanilla response subscribers can have priority zero

Created on 10 September 2015, about 10 years ago
Updated 21 August 2025, about 2 months ago

Problem/Motivation

DynamicPageCacheSubscriber::onResponse() has a priority of 100.
It is documented as needing to run before HtmlResponseSubscriber::onRespond(), which has a priority of 0.

When trying to implement a response subscriber to add cache tags, it needed to be set to 101 to function.

Proposed resolution

Allow vanilla response subscribers to have a 0 priority by making DynamicPageCacheSubscriber and HtmlResponseSubscriber negative.

Remaining tasks

Pick a negative priority for each that works.

User interface changes

N/A

API changes

Not really, right?

Data model changes

N/A

πŸ“Œ Task
Status

Postponed

Version

11.0 πŸ”₯

Component

request processing system

Created by

πŸ‡ΊπŸ‡ΈUnited States tim.plunkett Philadelphia

Live updates comments and jobs are added and updated live.
  • DrupalWTF

    Worse Than Failure. Approximates the unpleasant remark made by Drupal developers when they first encounter a particular (mis)feature.

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.

Production build 0.71.5 2024