diff --git a/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php b/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php
index cc20063..cec8775 100644
--- a/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php
+++ b/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php
@@ -219,7 +219,7 @@ protected function processAssetLibraries(array $attached, array $placeholders) {
// Print scripts - if any are present.
if (isset($placeholders['scripts']) || isset($placeholders['scripts_bottom'])) {
// Optimize JS if necessary, but only during normal site operation.
- $optimize_js = !defined('MAINTENANCE_MODE') && !\Drupal::state()->get('system.maintenance_mode') && $this->config->get('js.preprocess');
+ $optimize_js = FALSE && !defined('MAINTENANCE_MODE') && !\Drupal::state()->get('system.maintenance_mode') && $this->config->get('js.preprocess');
list($js_assets_header, $js_assets_footer) = $this->assetResolver->getJsAssets($assets, $optimize_js);
$variables['scripts'] = $this->jsCollectionRenderer->render($js_assets_header);
$variables['scripts_bottom'] = $this->jsCollectionRenderer->render($js_assets_footer);
diff --git a/core/lib/Drupal/Core/Update/UpdateKernel.php b/core/lib/Drupal/Core/Update/UpdateKernel.php
index 6c5de73..cdf4385 100755
--- a/core/lib/Drupal/Core/Update/UpdateKernel.php
+++ b/core/lib/Drupal/Core/Update/UpdateKernel.php
@@ -7,6 +7,7 @@
namespace Drupal\Core\Update;
+use Drupal\Core\Cache\MemoryBackend;
use Drupal\Core\DrupalKernel;
use Drupal\Core\Session\AnonymousUserSession;
use Drupal\Core\Site\Settings;
@@ -57,6 +58,17 @@ public function handle(Request $request, $type = self::MASTER_REQUEST, $catch =
}
/**
+ * {@inheritdoc}
+ */
+ protected function initializeContainer() {
+ $container = parent::initializeContainer();
+ $container->set('cache.data', new MemoryBackend('data'));
+ $container->set('cache.discovery', new MemoryBackend('discovery'));
+
+ return $container;
+ }
+
+ /**
* Generates the actual result of update.php.
*
* The actual logic of the update is done in the db update controller.