Setup Varnish for MediaWiki
Setup Varnish with MediaWiki
Lets face it, MediaWiki is slow. With every request it has to go though thousands lines of code and multiple SQL queries to render a page. Very popular configuration for a MediaWiki site is Apache, PHP and MySQL. It’s very good setup but can’t be consider the fastest (at least without any additional tweaking).
The good news is MediaWiki doesn’t have to be a speed demon. In most cases it’s just a CMS to produce static pages. If the content is static it doesn’t make any sense to waste CPU cycles on re-rendering the same HTML over and over again.
Start off by install varnish on your server
You can follow the guide to install varnish Click Here
Adjust the Default.vcl
Below is a basic default.vcl for use with MediaWiki.