brandonwestcott / li3_varnish
Lithium PHP easy ESI varnish caching
Package info
github.com/brandonwestcott/li3_varnish
Type:li3-libraries
pkg:composer/brandonwestcott/li3_varnish
1.0.1
2012-11-08 20:57 UTC
Requires
- php: >=5.3
- joseym/li3_installer: master
This package is not auto-updated.
Last update: 2026-03-14 20:36:18 UTC
README
Libraries::add('li3_varnish', array( 'development' => array( 'esiUrl' => '/esi', 'defaults' => array( 'esi' => true, 'expire' => '+1 days' ), 'cache' => array( 'SomeController::index' => array( 'expire' => '+2 days', 'esi' => true, ), 'SomeController::show' ), ) ));
In the view, you have two options to render items as ESI partials. Either pass in esi = true into the options of a view render, or use the esi helper as a short cut.
<?=$this->_render("element", "login", array(), array('esi' => true)); ?> or <?=$this->esi->_render("element", "login"); ?>