Title: Issue with WP MAINTENANCE
Last modified: September 27, 2021

---

# Issue with WP MAINTENANCE

 *  Resolved [Astrix](https://wordpress.org/support/users/astrix/)
 * (@astrix)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/issue-with-wp-maintenance/)
 * Hello,
 * I noticed an issue with LITESPEED CACHE plugin and WP Maintenance plugin. ([https://wordpress.org/plugins/wp-maintenance/](https://wordpress.org/plugins/wp-maintenance/))
 * When maintenance mode is activated, and litespeed cache plugin deactivated, the
   browser displays a maintenance page (normal behavior)
 * But when litespeed cache is activated and wp maintenance mode is activated, visitors
   are still able to access the website as long as pages are cached.
 * Is there a way to prevent visitors to still be able to access the website while
   maintenance mode is on?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/issue-with-wp-maintenance/#post-14914552)
 * Hi,
 * because when page is cached already , then even you enable the maintenance , 
   the PHP won’t run , so it won’t know the mode has been changed
 * you may need to do a purge all when you enable maintenance mode
 * Best regards,
 *  Thread Starter [Astrix](https://wordpress.org/support/users/astrix/)
 * (@astrix)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/issue-with-wp-maintenance/#post-14914554)
 * [@qtwrk](https://wordpress.org/support/users/qtwrk/) Thank you! I’ll apply this
   strategy when going in maintenance mode
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/issue-with-wp-maintenance/#post-14914557)
 * Hi,
 * if the maintenance plugin has hook , you can call `do_action( 'litespeed_purge_all');`
   to automatically purge cache when it enables/disbales
 * Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Issue with WP MAINTENANCE’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/issue-with-wp-maintenance/#post-14914557)
 * Status: resolved