Title: Exlude Cookie from cache
Last modified: October 30, 2025

---

# Exlude Cookie from cache

 *  Resolved [auxe](https://wordpress.org/support/users/auxe/)
 * (@auxe)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/)
 * So, my Wishlist functions work fine unless I use the WP Fastest Cache plugin.
   I have tried to exclude some files and pages, but it’s still not working. Maybe
   I’ve missed something. Could someone please provide the best setup to completely
   exclude the Wishlist for WooCommerce plugin or cookie from caching?
 * This is an example form WP fastest Cache plugin website how to exclude YITH WooCommerce
   Wishlist “You don’t have to exclude any page because Wishlist page is automatically
   detected and the page is excluded from the cache. However if you encounter any
   problem, you can to exclude the **yith_wcwl_session** cookie as below.” [https://www.wpfastestcache.com/tutorial/woocommerce-settings/#wpft-yith-woocommerce-wishlist](https://www.wpfastestcache.com/tutorial/woocommerce-settings/#wpft-yith-woocommerce-wishlist)
 * Also, do I need to exclude it in Cloudflare, and if so, how? I’ve tried to bypass
   cache /wp-admin/admin-ajax.php, but that didn’t work either.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexlude-cookie-from-cache%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/#post-18702445)
 * Hi [@auxe](https://wordpress.org/support/users/auxe/),
 * Thanks for reaching out and for the detailed explanation!
 * Unlike some other wishlist plugins, **our Wishlist for WooCommerce plugin does
   not rely on cookies** to manage wishlist functionality — so excluding cookies(
   like `yith_wcwl_session`) wouldn’t apply in this case.
 * To help us better understand and assist you, could you please let us know **what
   specific issue you’re seeing** when WP Fastest Cache is active?
 * Also, as a general recommendation, you can try **excluding the page URL** from
   caching within WP Fastest Cache to see if that resolves the problem.
 * Once we have a bit more detail on the exact behavior you’re seeing, we’ll be 
   happy to guide you further!
 *  Thread Starter [auxe](https://wordpress.org/support/users/auxe/)
 * (@auxe)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/#post-18703337)
 * When I click the Add to Wishlist heart icon on a product or category page, it
   turns red as expected.
   However, after navigating to another page or refreshing,
   the red heart disappears, as if the item was not added, even though the product
   is actually added and visible in the Wishlist page.
 * It seems the wishlist status (red heart) is not being retained or updated correctly
   after page reloads, it is due to caching or session handling.
 * Could you please advise:
    - Which specific URLs, query parameters should be excluded from cache for proper
      wishlist functionality?
    - Is there a recommended configuration for WP Fastest Cache and Cloudflare to
      ensure wishlist dynamic content isn’t cached?
    - Or does your plugin provide hooks or constants we can use to prevent caching
      on wishlist-related requests?
 * For now, the only workaround I found is to bypass caching on product pages and
   categories, but this negatively impacts the page loading time and overall performance.
 * Could you please confirm if it’s possible to use a caching plugin with your Wishlist
   for WooCommerce plugin?
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/#post-18704712)
 * Hi [@auxe](https://wordpress.org/support/users/auxe/),
 * Thanks again for the detailed explanation. That’s really helpful in understanding
   what’s happening.
 * At the moment, we haven’t tested this specific scenario extensively with caching
   plugins like WP Fastest Cache or Cloudflare. To help us investigate this further,
   could you please try the following:
    1. **Check the browser console** (right-click > Inspect > Console tab) while clicking
       the wishlist icon and refreshing the page — let us know if you see any errors
       there.
    2. You shared a URL, but we’re currently unable to view it — could you please double-
       check and re-share the correct link if it’s still active?
    3. If possible, please also share your **WooCommerce System Status Report** _(WooCommerce
       > Status > Get system report > Copy for support) _with us [via this link.](https://www.webtoffee.com/contact/)
 * We’ll be happy to take a closer look and guide you further based on what we find.
 *  Thread Starter [auxe](https://wordpress.org/support/users/auxe/)
 * (@auxe)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/#post-18704874)
 * Hi,
 * Do you mean that this URL doesn’t open?
   [https://www.hotmilkvintage.com/vintage-80s-clothing/](https://www.hotmilkvintage.com/vintage-80s-clothing/)
 * Have you tried opening any other pages or categories?
 * I’ve already checked everything, there are no errors in the browser console. 
   It seems to be a caching issue because the problem only occurs when the cache
   plugin is enabled.
 * Could you please let me know if this issue has been reported by other users, 
   and whether your plugin is compatible with caching plugins?
   Also, can you explain
   how your plugin handles caching, and if there’s any special configuration needed
   when using it with a cache plugin?
 * So far, I haven’t received a clear explanation or solution. I’d appreciate any
   ideas on what to check next. Or is this problem related to your plugin’s code
   and compatibility with other plugins, meaning there’s nothing that can be done
   on your end?
 * I’m quite familiar with WordPress related technical issues, so feel free to share
   any detailed suggestions.
 * Thank you.
 *  Thread Starter [auxe](https://wordpress.org/support/users/auxe/)
 * (@auxe)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/#post-18704884)
 * For now, I’ve excluded all product pages from the cache, but this isn’t the best
   solution because it affects page speed and performance.
 * In your plugin’s general settings, I currently have “Show ‘Add to wishlist’ in
   pages” set to Product, and the “Show ‘Add to wishlist’ for product categories”
   option is left empty.
 * Since the wishlist button functionality isn’t working properly, I haven’t included
   the wishlist button in the Shop and Category pages, and I don’t want to exclude
   my entire shop from caching.
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/#post-18706470)
 * Hi [@auxe](https://wordpress.org/support/users/auxe/),
 * Thanks again for all the detailed information you’ve shared so far.
 * At this time, we haven’t received similar reports from other users experiencing
   this behavior specifically with **WP Fastest Cache** or Cloudflare. Also, we 
   haven’t officially tested our **Wishlist for WooCommerce** plugin with these 
   caching tools, so we’re unable to confirm full compatibility just yet.
 * Based on your description and our internal review, the issue appears to be related
   to how **cached pages are handling dynamic JavaScript-based features**. Our plugin
   uses **AJAX to add products to the wishlist**, and in some cases, cached content
   may interfere with how these scripts behave — especially with front-end updates
   like the red heart icon.
 * To address this, one potential workaround is to **exclude the plugin’s JavaScript
   file from caching**. If your caching plugin allows excluding specific JS paths,
   you can try adding the following path to the exclusion list: `wt-woocommerce-
   wishlist/public/js/wishlist-webtoffee-public.js`
 * This may help ensure that the wishlist icon updates correctly on cached pages.
   Additionally, to investigate further and assist more precisely:
    1. Could you please confirm if **IP restrictions** are enabled on your site? We’re
       currently unable to access your URL — it appears restricted from our end [(click here to view).](https://postimg.cc/Sjt0X8nq)
    2. Please share your **WooCommerce System Status Report**:
       Go to **WooCommerce 
       > Status > Get system report > Copy for support** [via this link.](https://www.webtoffee.com/contact/)
 * Once we receive the system report, we can also **privately share our IP address**
   so you can whitelist it and allow us to access your site directly to test the
   behavior.
 * We truly understand how important it is to maintain both performance and functionality,
   and we want to reassure you that **we’re fully here to help you sort this out**.
 *  Thread Starter [auxe](https://wordpress.org/support/users/auxe/)
 * (@auxe)
 * [7 months ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/#post-18710411)
 * I have blocked a few countries from visiting my website. Could you please confirm
   if you are browsing from one of these countries: Singapore, Central African Republic,
   Vietnam, India, Russia, or Belarus? If so, I can whitelist your location.
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [6 months, 4 weeks ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/#post-18720164)
 * Hi [@auxe](https://wordpress.org/support/users/auxe/),
 * Thanks for getting back to us.
 * We tested the scenario using the **free version of the WP Fastest Cache plugin**(
   1.4.1), and we were **not able to replicate the issue** on our end. The **wishlist
   functionality worked as expected**, including the red heart icon persisting after
   a refresh.
 * Please note that our team is based in **India**, and currently we’re **unable
   to access your website**, possibly due to IP restrictions. We’ve also previously
   requested your **WooCommerce System Status Report**, but it looks like we haven’t
   received it yet. It’s important for us to **understand the environment** in which
   you’re facing this issue.
 * Since we’re unable to reproduce it in our test setup, it seems more like a **
   site-specific case**.
 * Could you please share your **System Status Report** by going to: **WooCommerce
   > Status > Get system report > Copy for support**, and submit it [via this link](https://www.webtoffee.com/contact/)?
 * Once we have that, we’ll be able to check your setup more precisely and advise
   further.
 * We’re here to help and will do our best to assist once we have the necessary 
   details.
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/#post-18731400)
 * Hi [@auxe](https://wordpress.org/support/users/auxe/),
 * As we did not receive any response or follow-up questions from you, we will assume
   you got this working to your requirements. If you still have any more questions
   for us, please open a new thread, because we will mark this one as resolved.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Exlude Cookie from cache’ is closed to new replies.

 * ![](https://ps.w.org/wt-woocommerce-wishlist/assets/icon-128x128.png?rev=2599783)
 * [Wishlist for WooCommerce](https://wordpress.org/plugins/wt-woocommerce-wishlist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wt-woocommerce-wishlist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wt-woocommerce-wishlist/)
 * [Active Topics](https://wordpress.org/support/plugin/wt-woocommerce-wishlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wt-woocommerce-wishlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wt-woocommerce-wishlist/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [caching](https://wordpress.org/support/topic-tag/caching/)
 * [cookie](https://wordpress.org/support/topic-tag/cookie/)
 * [wpfastestcache](https://wordpress.org/support/topic-tag/wpfastestcache/)

 * 9 replies
 * 2 participants
 * Last reply from: [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * Last activity: [6 months, 2 weeks ago](https://wordpress.org/support/topic/exlude-cookie-from-cache/#post-18731400)
 * Status: resolved