Close

January 20, 2016

Making WooCommerce and W3 Total Cache work together

As some of you may know, I’m using WooCommerce, a free eCommerce solution by Woo Themes, to power both my record label’s and my online guitar learning platform’s web shops.

I’ve used other solutions like MarketPress before, but I think WooCommerce is by far the most beautiful, advanced and user friendly eCommerce solution for WordPress out there.

To keep the shops running smooth, I’m hosting all my sites on a VPS (Virtual private server) and using W3 Total Cache plugin as well to cache the pages and keep the loading speeds fast enough as well as reducing the strain on the server.

When I was first starting the Baros Records shop, I noticed that running both plugins (WooCommerce and W3 Total Cache) I couldn’t finish the checkout when using a mobile device, The “Proceed to checkout” button was simply greyed out, but it worked like a charm on my laptop.

To solve this issue I searched long time online until I finally stumbled upon this article which solved my problem instantly.

As soon as I added /shop* to Never cache the following pages: (in the menu Page Cache), the problem was gone!

woocommerce-w3-total-cache-not-working-page-cache

3 Comments on “Making WooCommerce and W3 Total Cache work together

R Chamberlain
January 27, 2016 at 15:23

On the Woocommerce site it says this regarding configuring W3 to work with it:

“If using caching plugins (such as WP Super Cache or W3 Total Cache), make sure you exclude the following pages from the cache through their respective settings panels:

Cart
My Account
Checkout

These pages need to stay dynamic since they display information specific to the current customer.”

And at the end says this:

“Note, WC 1.4.2+ sets the DONOTCACHEPAGE, constant which means you can skip this step”

I’m currently setting up the same and wonder if I need to do this exclusion step.
Thoughts?

Reply
Uros Baric
February 3, 2016 at 09:53

Hmm, interesting. So in theory it should take care of those pages, but I found in my case it simply did not work on mobile devices, so there must’ve been some kind of conflict between these two plugins. I’m not an expert on these matters, sorry!

Reply
Milhan Iqbal
May 9, 2017 at 16:50

Thanks for your help. The issue I had was with the Cart page ie when I remove products, the products don’t disappear until I manually refresh the page. By excluding the Cart page I was able to fix the issue.

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Get Updates

Get Updates

Join dozens of readers and get updates on my latest projects, videos and concert dates as well as classical guitar and recording tips. As a small thank-you you'll receive my recording of the famous Irish song Londonderry Air for free.

A sincere thank you and welcome aboard! Please, paste the following url address into your browser to download your free copy of Londonderry Air mp3: http://urosbaric.com/files/music/dannyboy.zip