Timeline for Render view inside block with caching
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 20, 2021 at 17:14 | vote | accept | Gábor | ||
Oct 20, 2021 at 15:09 | answer | added | 4uk4 | timeline score: 2 | |
Oct 20, 2021 at 14:35 | comment | added | Gábor | OK, thanks, if you copy the same to an answer, I'd be happy to accept it. | |
Oct 20, 2021 at 14:16 | comment | added | Gábor | If I have the same block twice on the page that happens to refer to a different product, well, I won't be very happy if the block caches itself with one of them. :-) Come to think of it, if the block caches itself with its own added instance ID, not just the generic one... | |
Oct 20, 2021 at 14:11 | comment | added | 4uk4 |
Naturally, switching off the cache would work return $view->buildRenderable('views_block_id', $args, FALSE); . If this works then use it. You don't need to cache the rendered result of the View when you are in a block which is cached on its own.
|
|
Oct 20, 2021 at 13:41 | history | asked | Gábor | CC BY-SA 4.0 |