• Hello:

    I have an issue with the yith wishlist plugin and the cache. When adding a product to the wishlist, the wishlist heart changes ton a different color (everything working fine). The issue is when I refresh the page, the heart goes blank. The same happens when going to a product page or vice versa.

    I’m using WP Rocket cache plugin on my site (shopkeeper theme) and they offer a solution for the yith plugin issue: “The solution to avoid problems with caching is to enter the cookie ID (yith_wcwl_products) into the option Never cache cookies…” (https://docs.wp-rocket.me/article/875-using-wp-rocket-with-yith-woocommerce-wishlist)

    The suggested solution fixes it, but the site speed drops. So, I talked to the wp rocket support team and they told me:

    “WP Rocket eliminates all PHP/MySQL processes from a page and creates static HTML output instead (as do most other caching plugins). So, the only way to protect the count from the cache would be to process it through AJAX/JS instead of PHP. (In other words, generate the dynamic content with code that gets executed on the browser level instead of the server level.)

    I recommend consulting with YITH wishlist developer to find out if it offers an AJAX based option for updating the heart/wishlist counter.”

    I have no issue with the counter, as I already hidden it. What I’m looking for is a solution to the heart, so it can be colored even if I refresh the page and without dropping the site speed. Probably working with to suggested solution from the wp rocket support team.

    Thanks,
    Ruben

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello Ruben,
    hope you are doing well! ??

    Unfortunately, at the moment we can’t implement an AJAX based option to update the heart icon. The correct solution is not avoiding to add the wishlist cookie to the cache as you can read in the WP Rocket docs, but as you say, it can be slower.

    We will study this case and check if we can implement a different solution, but at the moment we can’t add any change in the code.

    If you have any doubt let us know and we will be happy to help you.

    Have a nice day!

    What a nice answers, I bet the author fixed everything without your useless answer. One week just to hear that you can’t help, wow.

    • This reply was modified 5 years, 9 months ago by rivenverse.
    • This reply was modified 5 years, 9 months ago by rivenverse.
    • This reply was modified 5 years, 9 months ago by rivenverse.
    • This reply was modified 5 years, 9 months ago by rivenverse.
    Thread Starter rubscast

    (@rubscast)

    @yithemes Thanks for the answer. Hope there’s a solution soon if it’s possible of course.
    Regards,
    Ruben

    Hi, did you find the solution?

    stas0238

    (@stas0238)

    @rubscast
    @hoqale
    Hi, what about the solution ?
    Hope 2020 will take the answer.

    Just logged in to notice everyone who’s reading this that YITH Wishlist added a option under their general settings. You can freely enable and disable it from there ??

    Cheers.

    Edit: Just noticed that the heart icon is still not blacked out after adding the product to the wishlist and refreshing the page…

    • This reply was modified 4 years, 7 months ago by floow95.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘YITH wishlist working with cache plugins’ is closed to new replies.