• Resolved ctmartin2020

    (@ctmartin2020)


    This Woocommerce website has over 300,000 product pages, so full cache purges are something we want to avoid unless absolutely necessary. I have disabled all autopurge settings to accommodate this. However, we are finding that whenever a simple edit to a Product Category is made (whether or not any actual content is changed), the ENTIRE cache is cleared. I suspect this may be happening under other circumstances but this is something we can easily reproduce.

    I understand the logic of purging the cache for the Category itself when it is edited. I also understand that when a particular Product is edited that the cache for each of the Categories assigned to the Product should be purged — this is not the situation here, but the logic is understandable. But what I do NOT understand is why the ENTIRE cache is purged when a Category is edited.

    This is what we see in the purge log when a Category is edited/updated:

    05/29/23 18:16:13.655 [102.129.254.77:59390 1 aMr] ?? ------POST HTTP/1.1 (HTTPS) /wp-admin/edit-tags.php
    05/29/23 18:16:13.655 [102.129.254.77:59390 1 aMr] Query String:
    05/29/23 18:16:13.655 [102.129.254.77:59390 1 aMr] HTTP_REFERER: https://oemdirtbikeparts.com/wp-admin/term.php?taxonomy=product_cat&tag_ID=36344&post_type=product&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dproduct_cat%26post_type%3Dproduct
    05/29/23 18:16:13.655 [102.129.254.77:59390 1 aMr] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
    05/29/23 18:16:13.655 [102.129.254.77:59390 1 aMr] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
    05/29/23 18:16:13.655 [102.129.254.77:59390 1 aMr] Accept Encoding: br,gzip
    05/29/23 18:16:13.655 [102.129.254.77:59390 1 aMr] Cookie _lscache_vary: e8db45dcf1a3212ce8251670946b5750
    05/29/23 18:16:13.655 [102.129.254.77:59390 1 aMr] X-LSCACHE: false
    05/29/23 18:16:13.655 [102.129.254.77:59390 1 aMr] X-LiteSpeed-Purge: public,ad8_ => LiteSpeed\LSC->send_headers()@603 => WP_Hook->apply_filters(,ARRAY)@308 => WP_Hook->do_action(ARRAY)@332 =>
    /home/oemdir5/public_html/wp-includes/load.php@517

    What can I do to avoid this behavior where the ENTIRE cache is purged in this case?

    The report ID is: NXQUISSZ

    Any help & guidance is greatly appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Cache -> Purge -> Purge All Hooks -> remove edit_terms should do it.

    Thread Starter ctmartin2020

    (@ctmartin2020)

    Ahhhh… thank you. That works. Forgot about changing from the default purge-all hooks!

    Plugin Support qtwrk

    (@qtwrk)

    this will remove auto purge for category edit , you may need to manually purge it after you edit , for that specific URI , in toolbox -> purge -> purge URL

    Thread Starter ctmartin2020

    (@ctmartin2020)

    Manual purges are exactly what I prefer. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘LS Cache fully purged on Woo Category edit’ is closed to new replies.