News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Bas de Nooijer's Blog:
Controlling Varnish ESI inside your application
July 16, 2010 @ 08:50:57

As is mentioned on the Zend Developer Zone, there's a new post from Bas de Nooijer about a cool feature of Varnish - Edge Side Includes - and how you can control them.

For me one of the best features of Varnish is ESI (Edge Side Includes). It allows you to combine elements with different lifetimes into a single page. This way you don't need to regenerate a complete page as soon as a news listing somewhere on the page changes. And you can still cache pages while displaying user-specific information somewhere on the page. This lowers the load on your application even further and it can also help in simplifying your application, by focussing purely on the content of the page and loading all other elements via ESI.

He talks about the upsides and downsides to using the technique and what to avoid when implementing it in your Varnish config. One solution to the problem is sending an ESI "marker" to tell Varnish that a certain bit of content needs to be updated. He shows how to put it to use with a Zend Framework view helper that adds a special "esi" tag to the page when the content for a URL needs to be updated.

0 comments voice your opinion now!
varnish caching edgesideincludes zendframework viewhelper


blog comments powered by Disqus

Similar Posts

Ibuildings Blog: My framework is better than all other frameworks

Hari KT's Blog: A simple Blog using Zend framework 1.9

Jim Plush's Blog: Rethinking Zend Models Part 3 - Validation

ThinkPHP Blog: Methods to Reduce the Load of Your Webserver by Caching Content

Matthew Weir O'Phinney's Blog: Zend Framework MVC Webinar posted


Community Events

Don't see your event here?
Let us know!


opinion version extension framework library introduction podcast php7 series voicesoftheelephpant conference api example symfony2 community laravel interview performance release xdebug

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework