Hello,
WooCommerce uses cookies to manage sessions and other essential functions. Specifically, WooCommerce uses the following cookies related to sessions:
wp_woocommerce_session_
: Contains a unique code for each customer so that it knows where to find the cart data in the database for each customer.
By default, WP-Optimize does not cache sessions, so WooCommerce session data should not be affected by the caching process. However, if you would like to be extra cautious and ensure that session-related cookies definitely prevent caching, you can add them to the cookies exclusion section in WP-Optimize.
Here’s how you can do it:
- Go to your WP Admin Panel.
- Navigate to WP-Optimize > Cache.
- Click on the Advanced settings tab.
- Scroll down to the “Cookies which, if present, will prevent caching (one per line)” section.
- Add the following cookie name:
wp_woocommerce_session_*
Adding wp_woocommerce_session_*
to this section ensures that any presence of these cookies will prevent the page from being cached. This helps maintain the dynamic behavior necessary for WooCommerce sessions and user-specific data.
For more details on WooCommerce cookies, you can refer to their documentation here.
Thanks!