- 🇵🇭Philippines abhaypai
Came here from Bug smash initiative. I am still able to replicate this issue on D11 and tried initial level of debugging.
Wondering why
CacheableMetadata::createFromRenderArray($username)->addCacheableDependency($node)
orCacheableMetadata::createFromRenderArray($username)
are not working as expected. Checked type of argument that i am passing and also looked into multiple other ways of defining it, stillx-drupal-dynamic-cache
is not coming on response headers.Might need some more insights here from the community.
- Status changed to Needs review
about 1 year ago 5:27am 19 December 2023 - 🇵🇭Philippines abhaypai
Might need some more insights here from the community, thats why moving it to Needs review status.
Is it designed that way or needs fix ? note i am aware of related issue https://www.drupal.org/project/drupal/issues/3232018 → and from my POV possibly we need to take some action on this issue, since it is affecting in many more pages with
x-drupal-dynamic-cache: UNCACHEABLE
in response headers. - Status changed to Postponed: needs info
about 1 year ago 3:35pm 19 December 2023 - Status changed to Needs work
about 1 year ago 5:39pm 19 December 2023 - 🇬🇧United Kingdom catch
This doesn't need more info, the bug has been reproduced in #32 and also previously, it does need a conversion to an MR though at least.
- 🇮🇳India Akhil Babu Chengannur
By default,
x-drupal-dynamic-cache
header is present when revision oveview page is accessed and its value is 'UNCACHEABLE'.Now, If revision overview page is accessed after applying patch #17,
x-drupal-dynamic-cache
header wont be there. This is due tho the following condition in onResponse() method of DynamicPageCacheSubscriber.// Don't cache the response if the Dynamic Page Cache request & response // policies are not met. // @see onRequest() if ($this->requestPolicyResults[$request] === RequestPolicyInterface::DENY || $this->responsePolicy->check($response, $request) === ResponsePolicyInterface::DENY) { return; }
$this->responsePolicy->check()
calls several policy rules andDrupal\dynamic_page_cache\PageCache\ResponsePolicy\DenyAdminRoutes
rule returns 'deny' for revison overview route as its an admin route. (_admin_route: true). Sox-drupal-dynamic-cache
header is omitted.