default purge all hooks definition




Wordpress LScache Plugin: default purge all hooks definition

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi I run a woocommerce store with litespeed cache. Although I have already set up a cache expiration date of 1 week, I have a feeling that the crawler resets and recrawls again after some action I have performed. I look into the purge settings and come across a series of default purge all hooks. I didnt add any new hooks into it. Is there a guide explaining what these hooks actually mean in terms of what I do in woocommerce. Im trying not to perform a purge all as often as possible because it takes 2 hours for my site to complete the entire crawling process. Some of them are pretty self explanatory. But what about these hooks here, what are they? create_term edit_terms delete_term add_link edit_link delete_link Again, I am trying to limit the number of times litespeed performs an auto purge so all customers who visit my site are experiencing great performance and speed. Hi, you can google search them as create_term() wordpress , it will lead you to a page like https://developer.wordpress.org/reference/hooks/create_term/ it will explain what they do there is also some purge is hard-coded and un-controllable manner like edit/publish some page/post/product Best regards, I had an impression that litespeed cache will only auto purge when the following hooks are activated. switch_theme wp_create_nav_menu wp_update_nav_menu wp_delete_nav_menu create_term edit_terms delete_term add_link edit_link delete_link I have removed all of the hooks except for switch_theme from the purge settings. Yet when I add new products in store, cache is still auto purged. I add about 20 products every day. Each time a product is added, the cache is purged. It takes me several hours to complete adding these products, so during those several hours, cache is basically purged 20 times if 20 products are added. Is there any way to stop auto purging when new products are added. I would rather like to perform a manual purge myself after finishing my work. Thank you. Hi, by default , it should only purge the relavant pages when you add/edit product, like the product page itself , tag/category page it links to , maybe homepage as well if you have something like new product widget in your homepage ?etc but in case you have like new product widget on all of your pages, that could lead to purge-all , literally add this into your themes functions.php if (strpos($_SERVER[REQUEST_URI], LSCWP_NONCE ) === false) ob_start( function($buffer) @header(X-LiteSpeed-Purge: nothing) return $buffer ) this should suppress ALL purge all under ANY circunstances , and only purge it when you manully use the purge all button on admin bar -> drop down menu Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference