Wordpress LScache Plugin: Automatically purge cssjs
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, Im looking for a way to schedule an automatic purge of the CSS/JS cache. There are lots of useful-looking wp-cli commands listed here ? https://docs.litespeedtech.com/lscache/lscwp/cli/ ? but nothing I can see that relates specifically to the cache of combined/minified CSS/JS files. Similar goes for the action API (https://docs.litespeedtech.com/lscache/lscwp/api/#purge). Would calling do_action( litespeed_purge_all ) or running wp litespeed-purge all clear the CSS/JS cache, i.e. delete all the files in wp-content/litespeed/cssjs? Is there a more specific action/command that Ive overlooked while perusing the documentation? Any help greatly appreciated, Tommy The page I need help with: https://www.krotosaudio.com Hi, purge all will purge CSS/JS as well Best regards, Thanks for confirming. To clarify, is it correct that theres no specific api/cli command for just purging the CSS/JS cache? Best wishes, Tommy correct Thanks!
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference