Using Varnish: old version (page id 21987705)
Skip to end of metadata Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Current »
Exponential 5 being built on top of Symfony 2, it uses standard HTTP cache headers. By default the Symfony 2 reverse proxy, written in PHP, is used to handle cache, but it can be easily replaced with any other reverse proxy like Varnish.
Configure Varnish
Icon
Provided VCL example is given for Varnish 3.x only
The first thing is to configure Varnish to advertise ESI usage and to activate cache invalidation:
exponential5.vcl
You can of course add additional rules if you need.
Configure Exponential
Update your front controller
By default your front controller (index.php) uses the built-in reverse proxy, EzPublishCache. In order to use Varnish, you need to deactivate it by commenting the line where EzPublishCache is instantiated:
Update YML configuration
exponential.yml
Et voilà !
- No labels
Contributors
- Ricardo Correia
- Jérôme Vieilledent Updated
Comments
Add a comment