• Resolved lakiriki

    (@lakiriki)


    Hello,

    I have a problem in my Woocommerce website with a mini cart widget ( flycart from WPCleaver ). It is AJAX based add to cart side cart widget. When I turn on caching option in Litespeed everything goes smooth for about 20-24 hours, then mini cart just stop working. Whenever you try to add something to the cart, it opens empty cart. I tried turning on ESI and cart vary in Litespeed’s Woocommerce section, but it didn’t help. I also tryed turning off Object REDIS cache, but it didn’t help too.

    What could be the cause and solution for this problem ?

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support litetim

    (@litetim)

    Thread Starter lakiriki

    (@lakiriki)

    Hello,

    Yes I did, but the problem remains. Also, the mini cart is AJAX based, so vary for mini cart is not supposed to help in that case anyway ? Do you have any other idea ? It is interesting because the problem doesn’t occurre immediately, but after some hours after the cache for a certain product page was created.

    Plugin Support litetim

    (@litetim)

    @lakiriki that setting should help, but depends on how the cart ajax is running.
    Please send us a report and share with me the report ID created.
    Can be done from: LSC => Toolbox => Report => click on “Send to Litespeed”

    We can further debug the issue

    Thread Starter lakiriki

    (@lakiriki)

    Last Report Number: EKNNWVOR

    Last Report Date: 04/22/2025 14:03:32

    Thank you very much in advance,
    Lazar

    Plugin Support litetim

    (@litetim)

    @lakiriki it seems your site follows standard ajax cart and our code should apply.
    I tested from 2 different browsers and it worked as expected.
    What exactly is not working as you expect? do customers OR guests get cart from each other? cart is empty?

    Plugin Support qtwrk

    (@qtwrk)

    Thread Starter lakiriki

    (@lakiriki)

    Yes that is the plugin I use and also this addon plugin to make add to cart AJAX : https://ww.wp.xz.cn/plugins/wpc-ajax-add-to-cart/ .

    The cart works perfect now, but just as I mentioned in first post, it works perfect for about 20-24 hours and after that on add to cart button it opens empty cart to everyone until I purge cache. When I purge it, problem is solved for next 20ish hours.

    We only have guests users. There is no logging in for customers.

    Plugin Support qtwrk

    (@qtwrk)

    please try this , enable ESI, add woofc-security into ESI nonce list , save and purge all

    Thread Starter lakiriki

    (@lakiriki)

    I tried that and still not working. It was working for some hours, but later it stopped. At the moment it is not working. Please check it, I will not purge cache.
    tektoshop.rs

    Last Report Number: QUWLOUAP

    Last Report Date: 04/23/2025 12:23:54

    Plugin Support qtwrk

    (@qtwrk)

    please try this

    go to toolbox -> debug log , set debug log to ON , debug level to advance , debug include URI, add

    test
    lsesi

    then purge all, open a product page, with ?test , like https://domain.com/something/?test

    once page loaded, go to toolbox -> log view -> copy paste log and share via https://pastebin.ubuntu.com/

    Thread Starter lakiriki

    (@lakiriki)

    Since debug log was already set to ON with debug level to advance, here is the log before I did what you said :
    https://pastebin.ubuntu.com/p/mY38KhcWxV/


    and this is the log after I did what you said in last message:
    https://pastebin.ubuntu.com/p/TMcKsnDgfc/

    Plugin Support qtwrk

    (@qtwrk)

    too many unwanted logs makes it incorrect

    please add

    Media
    Util
    LQIP

    into debug exclude string, then repeat the process to grab log

    Thread Starter lakiriki

    (@lakiriki)

    Plugin Support qtwrk

    (@qtwrk)

    the log looks alright , maybe I put wrong nonce name ?

    could you please check with that plugin’s support, and kindly as them , what is the nonce name it used when add item to cart ? or better yet, can point out which line/code in their plugin did that

    Thread Starter lakiriki

    (@lakiriki)

    Ok I will ask them.
    Is there a way I can maybe check it manually through “inspect” ?

    Also I see this line in log : X Cache_control TTL -> 43200 . Since this value is 12 hours, is there a chance it is the cause of the problem and can that TTL maybe be changed ?

    I guess something time sensitive is the problem since everything works perfectly for some hours.

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Woocommerce mini cart caching problem’ is closed to new replies.