Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
page_cache.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Jan 2019 at 02:13 UTC
Updated:
14 Mar 2019 at 03:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
effulgentsia commentedComment #3
effulgentsia commentedHere's a test that demonstrates the failure.
Comment #4
effulgentsia commentedHere's the fix.
Comment #6
wim leersComment #9
wim leersComment #11
effulgentsia commentedComment #12
wim leersComment #13
catchWhy can't this be a protected property on the page cache middleware itself?
Comment #14
wim leersThe PageCache middleware only handles the master request, of which there can only be one, so … you're right!
Comment #15
effulgentsia commentedLet's do it this way then. Same functionality, just a style difference.
Comment #16
wim leersYou've now introduced a functional change that should cause failures.
Comment #17
effulgentsia commentedRe #16, oops.
And regardless of that, I changed my mind and think #14 is better after all, so reuploading that one.
Comment #19
wim leersHah! 😀
Comment #21
catchCommitted 49ef12b and pushed to 8.7.x. Thanks!
Comment #23
samuel.mortensonI know this isn't a normal core use case but this makes making two requests in one Drupal bootstrap impossible as the CID is the same for both requests. Will decorate the service for Tome to workaround this.
Comment #24
effulgentsia commentedI was wondering if it was possible to have multiple master requests in the same Drupal bootstrap. I guess #23 means yes. Note to self: look at Tome to see how it does it.