Woocommerce + Cache Plugin Question


#1

I’m wanting to use WP Super Cache with my Woocommerce sites but can’t see how to prevent cart, checkout, etc. from being cached.

I’ve always had to use a plugin called Quick Cache that allows me to create no follow url patterns but it’s not as good as WP Super Cache.

Anyone have any insight on this? What type of Cache plugin are you using with your ecommerce setup?


#2

Hi,

I think you can use the WP Super Cache plugin with WooCommerce, they seem to mention it in there docs.

In the plugin settings under advanced look for…

wp-.*\.php
index\.php

You would add the page strings to this section but i’m not entirely sure how the format goes.


#3

Thanks,
I seen that in their docs but also I seen that people were having problems with the two together. I was wondering if anyone here was using Super Cache & Woocommerce together? I might just have to do a late night trial.


#4

@neruda

Did you get it working? Looking to turn on cache as well.


#5

Yes and No…It works by excluding the pages mentioned in the docs:

But most WooCommerce templates have the cart in the upper right hand corner with the total of the items you have added to the cart so far. I don’t know how to prevent WP Super Cache from caching that area. So basically even after you empty your cart, it will still show that you have something in it in the top right corner.

Hope I’m explaining correctly…sorry if it’s not making sense.


#6

I am working on this as well, but I’m using http://wordpress.org/plugins/w3-total-cache/ instead of super cache because I’m having more luck with that on my “multisite” installation.

You can see an example of WooCommerce working with W3 Total Cache here: http://kids-toys-wordpress-theme.dtbaker.net/

This page is cached and minified, when you add one of the products to your cart (done via ajax) the number in the top right increments. When you refresh the page you see the original cached “0” for a second before it is updated via ajax to “1” or whatever.

So the “base” page is cached, but when setup correctly the cart should be updated via ajax/javascript after loading.

Yell if you need a hand with anything.


#7

Thanks dtbacker,
I’m actually a customer of yours. The kids toys theme is great! I used it for a project when it first came out. Glad to know I can use W3 Total Cache with it.

Unfortunately the theme I am using now seems to break when I use W3 Total Cache…It could be a conflict with another plugin. I’ve searched all over and can’t find any advice for using Super Cache with Woocommerce however. Not sure what to do at this point. I will figure something out.


#8
dtbaker said

I am working on this as well, but I’m using http://wordpress.org/plugins/w3-total-cache/ instead of super cache because I’m having more luck with that on my “multisite” installation.

You can see an example of WooCommerce working with W3 Total Cache here: http://kids-toys-wordpress-theme.dtbaker.net/

This page is cached and minified, when you add one of the products to your cart (done via ajax) the number in the top right increments. When you refresh the page you see the original cached “0” for a second before it is updated via ajax to “1” or whatever.

So the “base” page is cached, but when setup correctly the cart should be updated via ajax/javascript after loading.

Yell if you need a hand with anything.

Attention! When you add a product your cart is increment but when you click on cart to pay comes empty…


#9

Hello neruda! - Or anyone who will help me!
Can you tell my excactly how to do that thing about disabling “my account” caching?
I cant find it in the wp-super cache settings :frowning:

Hope you will answer this… :slight_smile:

/iostergaard