• Resolved mohamedali86

    (@mohamedali86)


    Hi,

    It is very nice plugin, but I have a simple question.

    I have a woo commerce site and need to exclude sessions from caching, in which section of exclude page can I enter “_wc_session_” phrase.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Support wpmansour

    (@wpmansour)

    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:

    1. Go to your WP Admin Panel.
    2. Navigate to WP-Optimize > Cache.
    3. Click on the Advanced settings tab.
    4. Scroll down to the “Cookies which, if present, will prevent caching (one per line)” section.
    5. 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!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.