From c2f8347197eb104180072dae1b1d4d4f7eae5440 Mon Sep 17 00:00:00 2001 From: girishpanchal30 Date: Thu, 26 Oct 2023 13:06:06 +0530 Subject: [PATCH] Fix issue with private page #404 --- includes/classes/wp-maintenance-mode.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/classes/wp-maintenance-mode.php b/includes/classes/wp-maintenance-mode.php index 9c351b5..05d184b 100644 --- a/includes/classes/wp-maintenance-mode.php +++ b/includes/classes/wp-maintenance-mode.php @@ -98,6 +98,7 @@ private function __construct() { add_action( 'otter_form_after_submit', array( $this, 'otter_add_subscriber' ) ); if ( isset( $this->plugin_settings['design']['page_id'] ) && get_option( 'wpmm_new_look' ) && get_post_status( $this->plugin_settings['design']['page_id'] ) === 'private' ) { + add_filter( 'wpo_purge_all_cache_on_update', '__return_true' ); wp_publish_post( $this->plugin_settings['design']['page_id'] ); }