How can I use Varnish Edge Side includes for a sidebar?
You can do something like the following: If you have a sidebar called “Sidebar” <?php if ( !dynamic_sidebar(“Sidebar”) ) : endif; ?> You wrap it in ESI tags, one for if ESI is not enabled and one if it is: <esi:remove> <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(“Sidebar”) ) : endif; ?> </esi:remove> <!–esi <esi:include src=”https://wordpress.stackexchange.com/wp-content/plugins/myplugin/esihandler.php”/> … Read more