Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In order to use next-gen caching like ESI in Varnish, we need to allow for the cache plugin to alter the content, so that rather than the actual data itself, an ESI tag is returned. This would also be necessary to use NgineX's SSI+memcached system.
Currently panels_render_layout() does this for the whole page by saying $content = $cache->content;
in the event that caching is triggered. We just need panels_get_pane_content() to do the same. It's a one-line fix. Patch attached!
Comment | File | Size | Author |
---|---|---|---|
panels_pane_esi_cache.patch | 814 bytes | joshk | |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted!
Comment #3
ajayg CreditAttribution: ajayg commentedSince #655268: Cache problem with 3.x-dev / also present in 3.3 release undid this patch, shouldn't this be opened again? Or atleast marked as "need work"?
Comment #4
ajayg CreditAttribution: ajayg commentedComment #5
Cyberwolf CreditAttribution: Cyberwolf commentedSubscribing.
Comment #6
mgiffordOk, so I'm assuming that this is also a D7 issue and that the fix was reverted.
If not please correct.