diff --git a/wp-settings.php b/wp-settings.php index 9cea140dc9..473f2c6cdd 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -57,7 +57,7 @@ wp_debug_mode(); // For an advanced caching plugin to use. Uses a static drop-in because you would only want one. if ( WP_CACHE ) - @include( WP_CONTENT_DIR . '/advanced-cache.php' ); + WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' ); // Define WP_LANG_DIR if not set. wp_set_lang_dir();