Exclude Opcode Cache from Purge All




Wordpress LScache Plugin: Exclude Opcode Cache from Purge All

Last Updated on: Wed, 15 Apr 2026 00:00:02
Is there a way to prevent Purge All from clearing the Opcode Cache? In fact, the cases I can think of for purging are: Only the page cache The page cache + all CSS items The page cache + all the JS items The page cache + all the CSS & JS items Is there a way to have these combinations? Currently, Purge All does too much, and everything else requires more than one action. Hi, well , not natively , but you can easily have a small custom plugin that does 2 things 1. add a purge button to the admin bar 2. in that button function , when called , send out x-litespeed-purge: and remove /wp-content/litespeed/css or wp-conent/litespeed/js or both directory that will be equivalent to purge JS/CSS best regards,



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



Reference