Wordpress LScache Plugin: Purge cache after plugin/theme updates?
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, I notice that when updating plugins, there is an admin message that appears at the start of the update process: Purged all caches successfully. Now I agree, it is a good idea to purge the cache when wp core, any plugin or theme is updated. But could it be made so that the purge is done AFTER the update process finishes instead of right before it? An active and full cache could actually prevent visitors facing the (brutally sober) WordPress maintenance mode message that occurs during updates Cheers and many thanks for a fantastic caching plugin and service! Hi, I just ran a quick test. On my test it is purge AFTER update on my log 04/28/20 18:42:12.580 [123.123.123.123:32894 1 gSZ] [Ctrl] X Cache_control -> no Cache ( Admin page ) => LiteSpeed Debug2::debug()@354 => LiteSpeed Control::set_nocache()@381 => LiteSpeed Admin->admin_init()@99 => WP_Hook->apply_filters()@288 04/28/20 18:42:14.011 [123.123.123.123:32894 1 gSZ] [Purge] added => LiteSpeed Debug2::debug()@354 => LiteSpeed Purge->_add()@375 => LiteSpeed Purge->_purge_all_lscache()@210 => LiteSpeed Purge->_purge_all()@178 => LiteSpeed Purge::purge_all()@167 => WP_Hook->apply_filters()@290 => WP_Hook->do_action()@312 => /home/my.domain.com /public_html/wp-admin/includes/class-plugin-upgrader.php@478 => Plugin_Upgrader->bulk_upgrade()@316 => /home/my.domain.com/public_html/wp-includes/class-wp-hook.php@4421 04/28/20 18:42:14.011 [123.123.123.123:32894 1 gSZ] X-LiteSpeed-Purge: public,stale,8b2_ 04/28/20 18:42:14.014 [123.123.123.123:32894 1 gSZ] [Purge] added MIN => LiteSpeed Debug2::debug()@354 => LiteSpeed Purge->_add()@375 => LiteSpeed Purge->_purge_all_cssjs()@276 => LiteSpeed Purge->_purge_all()@179 => LiteSpeed Purge::purge_all()@167 => WP_Hook->apply_filters()@290 => WP_Hook->do_action()@312 => /home/my.domain.com/public_html/wp-admin/includes/class-plugin-upgrader.php@478 => Plugin_Upgrader->bulk_upgrade()@316 => /home/my.domain.com/public_html/wp-includes/class-wp-hook.php@4421 the purge action is triggered by that upgrade hook Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference