• Resolved jksoftware

    (@jksoftware)


    Hello,

    When a user or a plugin creates a new order at my site, the whole cache is purged

    this is what happens when a plugin (not specific plugin) creates new order, the same situation i have when I create new order as customer.

    Is it possible somehow to disable the total purge of cache, when a new order is created?

    11/06/24 17:06:39.500 [185.6.76.178:52686 1 X3x] ?? ------POST HTTP/1.1 (HTTPS) /wp-json/wc/v3/smart_cart
    11/06/24 17:06:39.500 [185.6.76.178:52686 1 X3x] Query String:
    11/06/24 17:06:39.500 [185.6.76.178:52686 1 X3x] User Agent: ***
    11/06/24 17:06:39.500 [185.6.76.178:52686 1 X3x] Accept: */*
    11/06/24 17:06:39.500 [185.6.76.178:52686 1 X3x] Accept Encoding:
    11/06/24 17:06:39.500 [185.6.76.178:52686 1 X3x] X-LSCACHE: true
    11/06/24 17:06:39.500 [185.6.76.178:52686 1 X3x] LSCACHE_VARY_COOKIE: ,wp-postpass_***
    11/06/24 17:06:39.500 [185.6.76.178:52686 1 X3x] X-LiteSpeed-Purge: public,stale,b5a_FD => LiteSpeed\LSC->send_headers()@624 => WP_Hook->apply_filters(,ARRAY)@324 => WP_Hook->do_action(ARRAY)@348 =>
    /home/***/public_html/wp-includes/load.php@517
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    /wp-json/wc/v3/smart_cart

    are you sure this action is triggered on new order?

    and this only purges the feed page , doesn’t affect browser visit

    Thread Starter jksoftware

    (@jksoftware)

    It look like that after that action (it’sa plugin that creates new orders from marketplace to woocommerce, the same behavior I have when i place an order as guest), all product pages are served uncached!

    Plugin Support qtwrk

    (@qtwrk)

    please check the log , it must be a log on the checkout process , that should more hint.

    Thread Starter jksoftware

    (@jksoftware)

    What to see at log file, in order to check if something used the “purge all” function?

    I monitor the crawlers that running all day, and all the time i get cached pages, except when new order created (even when a user checkouts, even if an third party plugin creates the order).

    After any new order i get “cached missing” pages.

    Plugin Support qtwrk

    (@qtwrk)

    you should looking for keyword like x-litespeed-purge , and few lines before or after it, should mention some information about what did triggers , and also in above it , you should see the request URI that is being logged ,

    if it happens on new order, you can just use debug include URI setting to explicitly log during checkout process

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.