- πΊπ¦Ukraine voleger Ukraine, Rivne
π Page Cache causes different subrequests to return the same responses Fixed related issue
In the request below, if page cache is enabled, I receive the response for the 1st subrequest as the response for the 2nd subrequest. I am requesting as an anonymous user.
I traced the issue as far as the call to PageCache::get in which the call to get the cache id generates the same id for both subrequests.
$cid = $this->getCacheId($request);
Disabling the page cache in services fixes the issue.
$settings['cache']['bins']['page'] = 'cache.backend.null';
NB I have applied the patch in the following issue to avoid validation errors, without which the request is ignored as invalid. I don't think this is is the culprit, but I'm not 100% https://www.drupal.org/project/subrequests/issues/3029570 β .
Subrequest blueprint:
[
{
"requestId": "router",
"action": "view",
"uri": "/router/translate-path?path=/page/er-layout&_format=json"
},
{
"requestId": "resolvedResource",
"action": "view",
"uri": "{{router.body@$.jsonapi.individual}}",
"headers": {
"Accept": "application/vnd.api+json",
"Content-Type": "application/json"
},
"waitFor": [
"router"
]
}
]
Closed: duplicate
2.2
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
π Page Cache causes different subrequests to return the same responses Fixed related issue