Hi, I have an issue with my site built with WP, Woocommerce and Newspaper. After installing a caching plugin (WP Super Cache) site speed increased very much, but there is one problem with this. Woocommerce AJAX cart widget is being cached with the rest of the page. It causes situations where some users don’t see products in their cart widgets, and some users can see products they didn’t add to their carts. After a long investigation I am pretty sure that this problem is caused by Newspaper theme. I’ve tried installing some different themes and cart widget caching works fine with those themes (cart widget is not cached). I realized that cart widget in many different themes is added to <head></head> section of the page, while Newspaper adds it to the <body></body> section. Can it be the source of the problem? Is there any solution for this?
PS: I have also described my problem on WP Super Cache forum before I tried to install a different theme: https://wordpress.org/support/topic/wp-sc-caches-woocommerce-ajax-cart/
Best Regards,
MC
Hello!
Please make sure you install the WP Super Cache plugin and apply this configuration: https://forum.tagdiv.com/cache-plugin-install-and-configure
Thank you!
Hi, thank you for the reply. I did everything according to the manual from the link you have posted. Moreover, I have tried some other caching plugins and themes. The problem only exists with Newspaper theme, no matter what caching plugin I’m trying to use.
Regards,
MC
Complementing my previous post, I’ve done a lot of testing with many configs, including host configuration changes like: switching off CDN, changing PHP version, disabling WordPress security check script. I have also tried to change some woocommerce settings, like “disable/enable AJAX cart button on archive pages”. Unfortunately nothing helps.
Hello!
The issue can be from a plugin conflict, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache (also from your browser) and try again.
If this problem is not solved after that, then we need to take a look and see what happened there.
Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– cPanel url and credentials
– a link to this topic in order to identify you
Our team will take a look!
Thank you!