Configuration when using WooCommerce and W3 Total Cache together.

avatar
Share This:

If you want to use W3 Total Cache but have installed the WooCommerce plugin, I will introduce settings to prevent customer information from being cached.

Rejected cookies

Add the following four cookies to “Rejected Cookies” in the page cache settings.

woocommerce_cart_hash
woocommerce_items_in_cart
wordpress_logged_in
wp_woocommerce_session_

The following pages will not be cached

Add the following three pages to “Do not cache the following pages” in the page cache settings.

/cart
/checkout
/my-account

This will prevent you from caching customer information.

Also, it might be a good idea to make the following settings.

Turn on “Do not cache pages for logged in users”

Check “Do not cache pages for logged in users” in the page cache settings and save.

Comments

Leave a Reply

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

2 × 4 =