Wordpress LScache Plugin: Purge rules doesnt work
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, Im occurring an issue with the rules on auto purge on Litespeed. I hoped for months that it could be fixed automatically, but it didnt happen. Today I updated a lot of products pages and each time the product page was been purged automatically, also if I deselected all options on the relative page on Litespeed. Same happens usually when I try to change something on the menu for example. For this reason at the end I thought to contact you. Using a CDN you can easily imagine how this bugs can be problematic for our wallet. Here you can see our LS back-end: Could you check from your side, please? Thanks a lot. Hi, Today I updated a lot of products pages and each time the product page was been purged automatically you can follow this guide to grab the page tag and purge tag , to see if they are linked together when I try to change something on the menu if you meant the themes menu , then it is intend and expected, as menu are most likely apply to all pages Best regards, Hi @CacheCrawler, thanks for the help. Did you take a look to my setup? I deselected everything, except plugin updates. I do not understand. If I updates a WooCommerce product page is it normal that the cache for that page purges? How can I exclude these kind of pages? I think that you can understand that if I need to do many edit it could be wrong this workflow. About the menu, I understand what you said, but if I removed all hooks related to the menu from the list of Purge All Hooks , why it happens? Thanks. Hi, no , the screenshot settings are like additional or optional , there is some hard-coded purge conditions that will purge all , regardless how you set in that screenshot all the options you set are for what to do when publish or edit a page/post , not when edit a theme If I updates a WooCommerce product page is it normal that the cache for that page purges? yes , if it doesnt purge that page , it will make it show stale or out-dated content just like I said , enable the log , get the page tag and purge tag, we will see what happens by then. Best regards, Is there a way to avoid any automatic cleaning of the cache? For example if I know that I have to make many edit on some pages. Id like to keep on the cache, but I do not want that automatically it erase the cache of those pages automatically. Also because Litespeed cleans the cache for a specific page, but it doesnt mean that the crawler recreates the cache of that pages immediately. Someone will need to visit it before. emmmm??? you mean you want to suppress all the automated purge call and only proceed to manual purge that initiated by yourself ? Exactly. As I told you sometimes it could be necessary. For example in the case that were working for something that involves all pages like a menu or a lot of product pages on a specific category. add if (strpos($_SERVER[REQUEST_URI], LSCWP_NONCE ) === false) ob_start( function($buffer) @header(X-LiteSpeed-Purge: nothing) return $buffer ) at top of your active themes functions.php , right next line after
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference