- Issue created by @juagarc4
- 🇷🇴Romania bbu23
Hi,
Thanks for reporting this issue, I'll try to reproduce it when I get the chance.
The cache keys is an array of parts. In the case of node, a example is "['node', 5, 'teaser']". This means that the teaser representation of the node will be cached, but in Swiper's case it was a conflict because swiper is altering the representation. By adding the "swiper-slide" key we are creating two different "cache keys" depending on the scenario. And in theory, they are supposed to be unique. Randomising is not an option, so I first need to try to reproduce your scenario and investigate what happens to understand better.
More information about the original issue here: https://www.drupal.org/project/swiper_formatter/issues/3395406 🐛 Swiper formatter fails to wrap row in swiper-slide div intermittently Active
- 🇷🇴Romania bbu23
Though from your screenshots it might look like the keys are empty, so yes, in that particular case, the cache keys array will only contain the same key for all which is incorrect. Makes sense, I'll investigate.
- Merge request !16Issue #3488101: Display as "Swiper Entity" shows the same image in all slider elements → (Open) created by bbu23
- 🇷🇴Romania bbu23
I have provided a fix for this, thanks again for reporting this issue.
We made a small typo mistake when porting from version 1 to version 2. Please try out the patch and let us know if everything okay now.
Regarding the Proposed steps, 8 & 9 are not necessary, but of course can be tested. This bug can be reproduced for any entity reference, and in this particular example after step 7 the block can be added directly to the block layout and will have the same behaviour.