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
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 to see the link]
-
Hi @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!
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?
Hi @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:
- 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.
- 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?
- If possible, please also share your WooCommerce System Status Report (WooCommerce > Status > Get system report > Copy for support) with us via this link.
We’ll be happy to take a closer look and guide you further based on what we find.
Hi,
Do you mean that this URL doesn’t open?
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.
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.
Hi @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.jsThis may help ensure that the wishlist icon updates correctly on cached pages. Additionally, to investigate further and assist more precisely:
- 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).
- Please share your WooCommerce System Status Report:
Go to WooCommerce > Status > Get system report > Copy for support via this link.
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.
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.
Hi @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?
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.
Hi @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.
You must be logged in to reply to this topic.