Im using WP Rocket to cache my site. I noticed an caching error and contacted the WP Rocket Team:
“I had a bug with a woocommerce product. I visited my website and saw at one product page the woocommerce banner “that I have added a specific product to cart”. That must be from another user and when I refreshed the page, the notice was still there. It was only on one product page. Would be great to solve out that problem… I cleared the cache and it was gone, but I think it can happen again!”
The answered me, that “it’s not related to WP Rocket. It’s more likely related to your theme. The message should be ajax-ed correctly so it doesn’t get cached, but it seems not to be the case on your site. So the message appears for one customer and it gets cached for everyone.”
Could it be a problem with the implementation of all woocommerce notices and errors or only the add to cart one?
Could you please fix it in the next update? Thank you!
Have you checked if this issue appears with our theme only or with default Storefront page too?
Hi Olga, I had other sites and never experienced such an error. It must have something to do with the integration of xstore, like the support of WP Rocket mentioned…
“The way that the theme is displaying the “added to cart” message is not fully AJAX-ed, so it gets cached.
If you are not able to modify the theme to solve that, or if the theme developer can’t provide a solution, I think you can resolve it either by:
redirecting to the cart page after addition,
or by NOT enabling the AJAX add to cart buttons on archives.
But I think that are very bad solutions: redirect to cart page or deactivating ajax add to cart…
Hope you can sort that out…
I have read the first message that you sent and WP Rocket answer but I’m asking you the different: have you checked if this issue appears with our theme only or with default Storefront page too? You need to enable Storefront theme on this site and try to do the same that you did when our theme was activated. Do you see the cached messages with Storefront too?
Hello Olga I activated storefront theme on the staging site and the message wasn’t cached one time. So it is working with storefront. Hope we can sort that out. Temporarily I deactivated that notice completely… But that is not what I prefer :-/…
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.