Wordpress LScache Plugin: Clear all caches after a WordPress update?
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, I noticed on a few sites (running LiteSpeed Cache) that the sites design was mashed-up after an automatic WordPress update. Purging all LiteSpeed caches solved the problem. Is there anyway to have LiteSpeed Cache automatically purge all caches each time theres a WP update? Sal. Hi, by design it should auto-purge all when update plugin/theme/wp you can add this into your theme functions.php add_action( upgrader_process_complete, my_upgrade_function,10, 2) function my_upgrade_function( $upgrader_object, $options ) if ( defined(LSCWP_V)) do_action( litespeed_purge_all ) to force it purge all again , but I dont think this was the issue by automatic update, I assume its by cron , may I know how do you initiate the cron/upgrade task ? Best regards, Hi @CacheCrawler, Thanks for your reply. >may I know how do you initiate the cron/upgrade task ? It was an automatic background WP update from 5.8 -> 5.8.1 by cron (using MainWp ? https://kb.mainwp.com/docs/auto-update-wordpress-core/) fyi, I had several other sites running LiteSpeed cache update at the same time and there was no problem with these. Maybe this was just a one-off. Sal. hmmmm , there was an issue on v4.3 that has a potential bug to lead to style mess up ,maybe related to that also please check in plugin setting -> cache -> purge -> make sure serve stale is set to OFF
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference