Question

Wordpress W3 Total Cache plugin configuration with Varnish installed

Is there any tutorial to configure the W3 Total Cache plugin in droplet/server with Varnish installed? My concerns are:

  1. Do we need the W3TC plugin if we are using Varnish? If we do then how to configure the plugin?
  2. Do we need to configure the Varnish .vcl file once or everytime we setup new Wordpress site?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

In my experience we’ve ran into issues trying to use both an internal wordpress plugin with an outside cache like Varnish. <br> <br>Overall you are better at selecting one and sticking with it and alot of that also depends on what other plugins and functionality you have installed on your wordpress. <br> <br>I’d recommend using WordPress Super Cache: <br>http://wordpress.org/extend/plugins/wp-super-cache/ <br> <br>And then reviewing system performance and making adjustments if necessary. Also if you make both changes at once and start running into issues you’ll have a harder time of figuring out which one is at fault.

With my Nginx running Varnish, I installed WordPress Super Cache in my Wordpress and it prompted me to setup .Htaccess mod-rewrite when I enable <br>“Use mod_rewrite to serve cache files. (Recommended)” then I realize I’m not on apache. <br> <br>Is it possible to add .htaccess file to my wordpress root with Nginx running?