Skip to content
Snippets Groups Projects

Support multiple main requests with PageCache middleware

Open Matt Glaman requested to merge issue/drupal-3050383:3050383-cacheid-per-request into 11.x
1 unresolved thread

Closes #3050383

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
347 348 * The cache ID for this request.
348 349 */
349 350 protected function getCacheId(Request $request) {
350 // Once a cache ID is determined for the request, reuse it for the duration
351 // of the request. This ensures that when the cache is written, it is only
352 // keyed on request data that was available when it was read. For example,
353 // the request format might be NULL during cache lookup and then set during
354 // routing, in which case we want to key on NULL during writing, since that
355 // will be the value during lookups for subsequent requests.
356 if (!isset($this->cid)) {
351 if (!isset($this->cacheIds[$request])) {
Please register or sign in to reply
Loading