PageCache getCacheId doesn't compare cid of the following subrequests in subrequest queue calls.

Created on 24 April 2019, over 5 years ago
Updated 21 February 2023, almost 2 years ago

Problem/Motivation

First requests to the httpKernel will cache request properly but the following requests handled by the same httpKernel instance will return the same response that was cached for the first request.

Proposed resolution

Add check for the comparison of cached cid and current cid in the getCacheId() method of the Drupal\page_cache\StackMiddleware\PageCache class.

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

-

Release notes snippet

-

Feature request
Status

Needs work

Version

10.1

Component
Page cache 

Last updated 7 days ago

Created by

🇺🇦Ukraine voleger Ukraine, Rivne

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Merge Requests

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