Index: src/wp-includes/load.php
===================================================================
--- src/wp-includes/load.php	(revision 37588)
+++ src/wp-includes/load.php	(working copy)
@@ -183,6 +183,21 @@
 	// If the $upgrading timestamp is older than 10 minutes, don't die.
 	if ( ( time() - $upgrading ) >= 600 )
 		return;
+	
+	/**
+	 * Bypass the maintenance mode check
+	 *
+	 * This filter should *NOT* be used by plugins. It is designed for non-web
+	 * runtimes. 
+	 *
+	 * @since 4.6.0
+	 *
+	 * @ignore
+	 * @param bool True to bypass maintenance
+	 */
+	if ( apply_filters( 'bypass_maintenance_mode', false ) ){
+		return;	
+	}
 
 	if ( file_exists( WP_CONTENT_DIR . '/maintenance.php' ) ) {
 		require_once( WP_CONTENT_DIR . '/maintenance.php' );
@@ -285,6 +300,21 @@
  * @access private
  */
 function wp_debug_mode() {
+	/**
+	 * Bypass the debug mode check
+	 *
+	 * This filter should *NOT* be used by plugins. It is designed for non-web
+	 * runtimes. 
+	 *
+	 * @since 4.6.0
+	 *
+	 * @ignore
+	 * @param bool True to bypass debug mode 
+	 */
+	if ( apply_filters( 'bypass_debug_mode', false ) ){
+		return;	
+	}
+
 	if ( WP_DEBUG ) {
 		error_reporting( E_ALL );
 
Index: src/wp-settings.php
===================================================================
--- src/wp-settings.php	(revision 37588)
+++ src/wp-settings.php	(working copy)
@@ -70,8 +70,19 @@
 // Check if we're in WP_DEBUG mode.
 wp_debug_mode();
 
+/**
+ * Bypass the loading of advanced-cache.php 
+ *
+ * This filter should *NOT* be used by plugins. It is designed for non-web
+ * runtimes. 
+ *
+ * @since 4.6.0
+ *
+ * @ignore
+ * @param bool True to bypass advanced-cache.php 
+ */
+if ( WP_CACHE && ! apply_filters( 'bypass_advanced_cache', false )  ) {
 // For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
-if ( WP_CACHE ) {
 	_backup_plugin_globals();
 	WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
 	_restore_plugin_globals();
