- Issue created by @xavier.masson
- Merge request !9087Inject cacheable dependency from getEntity() for BlockContentBlock block β (Open) created by xavier.masson
- Status changed to Needs review
5 months ago 4:23pm 5 August 2024 - Status changed to Needs work
5 months ago 4:31pm 5 August 2024 - πΊπΈUnited States smustgrave
Thank you for reporting.
Fixes should be against the 11.x branch as the current development branch.
Also may need a test case showing this issue.
- Status changed to Postponed: needs info
5 months ago 9:42am 6 August 2024 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Are you using a custom template here?
https://www.previousnext.com.au/blog/ensuring-drupal-8-block-cache-tags-...
- π«π·France xavier.masson Haute-Normandie
@larowlan you are right, the block template is overridden and doesn't fully render the `content' variable. I agree it fixes the problem, but is it legit to extend the BlockContentBlock cache methods with the encapsulated block content entity? Thanks!
- Status changed to Active
5 months ago 1:09am 8 August 2024 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
I think this is reasonable.
I wonder how we go about testing it.