Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The dynamic page cache subscriber introduced a request attribute to store the cache policy result.
Proposed resolution
Store the request policy result inside the subscriber object.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | remove_request_policy-2575847-2.patch | 2.89 KB | znerol |
Comments
Comment #2
znerol CreditAttribution: znerol commentedComment #3
Wim LeersComment #4
Wim LeersMakes sense to me.
Needs trailing s. Can be fixed on commit.
Comment #6
catchLooks great. Less request attributes the better.
Committed/pushed to 8.1.x only because this is internal refactoring, removes the constant, adds the protected property etc. I can't see a reason this would need to go into 8.0.x but if there is one please re-open for backport.
Fixed the missing s on the protected property.
Comment #7
Wim LeersExactly :)
Comment #9
Wim LeersThis failed to update one comment. Created a minor follow-up: #2759247: Request attribute removed from DynamicPageCacheSubscriber, but comment was not updated.