• So varnish is interrupting my woocommerce store. Basically it allows you to add products to the cart but because of cacheing nothing is actually added. I’ve seen this code to fix it:

    if (req.url ~ "^/(cart|my-account|checkout|addons)") {
     return (pass);
     }
    if ( req.url ~ "?add-to-cart=" ) {
     return (pass);
     }

    as welll as tried escaping urls etc but I cannot get woo to work while varnish is running. I can however log in and purchase because Varnish doesn’t cache for logged in users, but I don’t want users to have to register beforehand. Anybody have any recommendations? Client wanted this live days ago so I’ll try anything (most things) to get it to work. Thanks in advance.

    https://wordpress.org/plugins/woocommerce/

  • The topic ‘Woocommerce and Varnish’ is closed to new replies.