Varnish Cache tested on Magento
Lucas Liang | September 26, 2011Varnish Cache is a web application accelerator, also known as a caching HTTP reverse proxy, which is designed for content-heavy dynamic web sites. And today, we have tried Varnish on a Magento default sample shop, to see how well Varnish helps on the loading speed, compared to the bare Magento install.
1 Varnish Features for Magento
1.1 Enable full page caching using Varnish.
For a sample Magento website, Varnish is enabled to cache most of the pages, like Home Page, and other Page Categories.
1.2 Varnish servers are configurable in Admin, under System / Configuration / General – Varnish Options
You can specify which Varnish server Magento website is using. If just use one server for hosting Magento website, we can install varnish on the same server and input the blank as 127.0.0.1:80 which is by default.
1.3 Automatically clears (only) cached pages when products, categories and CMS pages are saved.
For example, if you add a new product or update the parameters of the products, when you click the save button in the admin page, the website data which stored in Varnish will be automatically purged, so that you won’t read the old data in the Varnish Cache.
In the figure below, I modified the price of HTC Touch Diamond, when I click ‘Save’, the Data in the Varnish Cache is purged, so you can see the price of the product is up-to-date. Read more »







Recent Comments