- Issue created by @scott_euser
- 🇬🇧United Kingdom scott_euser
Looks like this regression was introduced in 🐛 Cache metadata is not captured when no results Fixed
- Merge request !49Let the non-lazy formatter respect the view cache → (Merged) created by scott_euser
- last update
9 months ago 1 pass - Status changed to Needs review
9 months ago 5:39am 2 May 2024 - Status changed to Fixed
9 months ago 12:59pm 2 May 2024 - 🇬🇧United Kingdom joekers UK
Thanks for raising and fixing the issue - merged into dev.
- Status changed to Needs review
9 months ago 6:21pm 2 May 2024 - 🇩🇪Germany donquixote
I have not tested, but the change looks reasonable to me.
I assume/hope the render element will contain all the necessary cache metadata, even on empty result. - Status changed to Fixed
9 months ago 6:22pm 2 May 2024 - 🇬🇧United Kingdom scott_euser
Yep it takes all attributes of the #cache key, in the same way that add cacheable dependency does so if the view returns a max age of zero like the original issue re no results, that will be carried across into the $elements render array.
- 🇬🇧United Kingdom scott_euser
Thanks for actioning this so quickly by the way, much appreciated! Was a bit worried about some higher traffic sites taking a performance hit.
- 🇩🇪Germany donquixote
@scott_euser
Could we come up with a testing scenario to confirm that this works correctly on a given website? - 🇬🇧United Kingdom scott_euser
Yeah we would just render a view programmatically and check cacheability then again same view but via views reference field formatter. But this module has very little test coverage as it is, so really it's part of a much bigger job.
Automatically closed - issue fixed for 2 weeks with no activity.