Under cache >> advanced settings>> Cookies which, if present, will prevent caching (one per line)
Can you adding the following cookies: tk_lr, tk_or, tk_r3d
This is not a valid solution for me.
I have the add to wishlist button on almost every single page.
When I add to exclude a page that has these cookies, I actually stop caching 99% of my pages.
Please give me another advice.
In reality, the problem is not noticeable when the user is not logged in. It is only there when the user is logged in.
I found this solution provided by WP – Rocket plugin https://docs.wp-rocket.me/article/875-using-wp-rocket-with-yith-woocommerce-wishlist. I also tried to recreate it with WP-Optimize but without success.
I added the “yith_wcwl_session_*” cookies and enabled the AJAX loading of the YITH wishlist plugin but now if the page is cached before then the add to favorites button doesn’t load at all.
And if I leave only “yith_wcwl_session_” then it just stops caching the whole page.
Can you try it with just the AJAX loading? The issue with the with_wcwl_session cookie is that it looks to be set before anything is added to the wish Lish (it is essentially just the session ID) so if you put this in the section for cookies to exclude from caching, your page will not be cached.
If I leave the Ajax loading of the YITH Wishlist plugin.
For a not logged in user it works as it should and the button goes out. Even after the page is cached everything is ok.
For a logged-in user, if the page is not cached, the button appears, but after it is cached, the button does not appear.
Please, if you have the opportunity, test it at your place as well.
Plugin versions are up to date as follows:
YITH WooCommerce Wishlist – 3.20.0
WP-Optimize – Clean, Compress, Cache – 3.2.14
WooCommerce – 7.6.1
Elementor Pro – 3.12.3
In Cache >> page cache, I would recommend you turn off the setting for “Serve cached pages to logged in users”
This is still not a good solution for me. I hope most of my users will sign up. For them, loading will become significantly slower.
Isn’t there an option to force Ajax loading after the cache is loaded by attaching to some hook. This is how I proceeded when updating the number of products in the Wishlist in the header. But at the moment I’m not sure how to organize such a thing but would it solve the problem?
Is there any plugin that has been tested and you know works with caching properly? For wishlist products.
Hi Vladimir,
Apologies for the delay over the weekend. I am just checking with our developer if there are any hooks that you use,
I replaced the plugin with another one. Which works as it should.
Tip: If you are doing a check on a question, it is good to inform. Since so much time with no response many people would change either your or the other plugin.
In this case, I changed the other one, but as I said, it is good to inform that you are doing a check on the matter.
Can you do a backup of your plugins using UpdraftPlus and send it to some remote storage. Can you then share the link with us so we can test the YITH plugin?