Cart Widget Cache Issue – Cart Widget Empty

This topic has 7 replies, 2 voices, and was last updated 1 years, 5 months ago ago by Blade

  • Avatar: ozaando
    Blade
    Participant
    November 19, 2022 at 02:28

    Hi,

    I’m facing issues with cart widget. The cart widget is empty while I have products in cart. It’s really confusing for customers and lose sales.

    How can I fix it please ?

    How to reproduce :
    Add product(s) to cart and see the cart widget appear
    Close the cart widget and search another or go on another page
    Cart widget icon display “0” and cart widget is empty.
    Go to cart page. Products are present

    Thanks.

    Regards.

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    November 19, 2022 at 07:29

    Hello, @Blade,

    Please try to disable all the third-party plugins (including cache plugins), that does not come bundled with XStore https://xstore.helpscoutdocs.com/article/36-included-plugins , clear the cache of the browser, and check then. Maybe one of the additional plugins is the reason for the problem.

    And if the issue will still persist then please remain all the third-party plugins deactivated on your site and provide me the login access to your site in the below-listed format in the private content area and allow permission to debug your site which includes deactivating all the third-party plugins and on-site Customization as well so that I will check and assist you accordingly.

    WP Admin URL:
    WP Admin Username:
    WP Admin Password:

    Note: Please take the complete backup of your site first.

    Regards 8Themes Team.

    Avatar: ozaando
    Blade
    Participant
    November 21, 2022 at 19:53

    Hello,

    Thanks for your answer but I can’t deactive all third-party and on-site customization cause the issue occurs on production site. I have duplicated site on staging (with all third-party and on-site customization actived) and I can’t reproduce the issue, cart widget stay updated correctly on all pages.

    So my question are:
    – How Cloudflare can impact the widget cart ?
    – Is there a recommended setting with Cloudflare regarding the widget cart ?
    – Is there an element I can configure to bypass cache on Cloudflare ?

    Regards.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    November 22, 2022 at 06:17

    Hello, @Blade,

    1- Actually, Cloudflare/CDN is very good for the site speed performance. But, because of the cache, it causes the issue. When the server cache got strong the site will load from the cache and causes unexpected issues on the site. Try to flush the server cache completely and disable the cache system until your site is in maintenance mode.

    2- Unfortunately, NO, there are no additional/recommended settings for the widget cart.

    3- Your service provider will be able to do it. There are no settings in the theme for it.

    Further, I have found these articles please check them:

    https://community.cloudflare.com/t/disable-caching/142759/5

    https://community.cloudflare.com/t/how-to-disable-caching-in-cloudflare-completely-and-permanently/350166

    Regards 8Themes Team.

    Avatar: ozaando
    Blade
    Participant
    November 22, 2022 at 12:25

    Hello Tony,

    Thanks for your answer and articles.

    Indeed Cloudflare is very good for site performance but it’s need to be well configure to prevent it from doing harm than good.

    I switched on the develoment mode and purged all cache but the issue was still there. And has I had another cache issue I desactivated WP-Optimize* cache. After that the cart widget issue no longer occurs. I switched off the development mode and I will wait to see if it happens again.

    Regards.

    *On staging with WP-Optimize cache actived this issue not occurs. It’s weird.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    November 23, 2022 at 04:53

    Hello, @Blade,

    I see, So actually, the “WP-Optimize” was the main cause of the issue.
    Yes, it will be great, as you already switched it OFF, now wait for some time to see and check the result.

    It seems the plugin is caching the cart page on your particular site, please read this official thread of “WP-Optimize”: https://wordpress.org/support/topic/woocommerce-and-wp-optimize-cache/

    OR

    https://wordpress.org/support/topic/js-conflict-when-enabled-the-wp-optimize-plugin/

    https://wordpress.org/support/topic/cache-for-logged-in-users-problem/

    Regards 8Themes Team.

    Avatar: ozaando
    Blade
    Participant
    November 24, 2022 at 11:46

    Hello Tony,

    Thanks for replying and sharing.

    Regards.

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Cart Widget Cache Issue – Cart Widget Empty’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.