• Resolved happyday25

    (@happyday25)


    Hello,

    I am having a problem where the cart count isn’t updating in Safari when I have WP Super Cache enabled. I saw in another thread that adding the code below to my functions.php will fix this (which is does). However prior to adding the script, the cart count does still works when testing in Chrome, it only seems to be in Safari that there is a problem. Is there another way to solve this that doesn’t require enqueuing the cart fragments since it seems to be Safari specific?

    function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); }
    add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @happyday25,

    Sorry for the late reply!

    We tried to replicate your issue without success. Can you please tell use what version of Safari you are running and what are your WP Super Cache settings?

    Let us know.

    Thread Starter happyday25

    (@happyday25)

    No worries! I am using 17.1.2 IOS with Safari.

    My WP Super Cache settings are enabled as follows:

    • Cache tester:  Send non-secure (non https) request for homepage
    • Cache delivery method: Simple
    • Cache restrictions:
      • Disable caching for logged in visitors. (Recommended) 
      • Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated. (Recommended)
    • Expiry Time & Garbage Collection:
      • Cache Timeout (3600 seconds)
      • Timer (600 seconds)
    • Reject URL strings: (wp-.*.php, index.php, /store, /cart, /checkout, /my-account, /feed, /addons, /administrator, /resetpass, /register, /login, /mepr, /account, /thank-you, /ref)
    • Always cache file names: (wp-comments-popup.php, wp-links-opml.php, wp-locations.php)
    • Track Parameters: (fbclid, ref, gclid, fb_source, mc_cid, mc_eid, utm_source, utm_medium, utm_campaign, utm_term, utm_content, utm_expid, mtm_source, mtm_medium, mtm_campaign, mtm_keyword, mtm_content, mtm_cid, mtm_group, mtm_placement)
    • Reject User Agents: (bot, ia_archive, slurp, crawl, spider, Yandex)

    • This reply was modified 10 months ago by happyday25.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cart count isn’t updating with caching enabled in Safar’ is closed to new replies.