diff --git a/core/includes/common.inc b/core/includes/common.inc
index f656206..6578930 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -3473,7 +3473,9 @@ function drupal_flush_all_caches() {
   foreach ($theme_handler->listInfo() as $theme_name => $theme) {
     $keys[] = 'theme.active_theme.' . $theme_name;
   }
-  \Drupal::state()->deleteMultiple($keys);
+  if (!empty($keys)) {
+    \Drupal::state()->deleteMultiple($keys);
+  }
   // In case the active theme gets requested later in the same request we need
   // to reset the theme manager.
   \Drupal::theme()->resetActiveTheme();
diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php
index 1e24968..a47ddd4 100644
--- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php
+++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php
@@ -218,11 +218,11 @@ public function setMultiple(array $items) {
     $deleted_tags = &drupal_static('Drupal\Core\Cache\DatabaseBackend::deletedTags', array());
     $invalidated_tags = &drupal_static('Drupal\Core\Cache\DatabaseBackend::invalidatedTags', array());
 
-    // Use a transaction so that the database can write the changes in a single
-    // commit.
-    $transaction = $this->connection->startTransaction();
-
-    try {
+//    // Use a transaction so that the database can write the changes in a single
+//    // commit.
+//    $transaction = $this->connection->startTransaction();
+//
+//    try {
       // Delete all items first so we can do one insert. Rather than multiple
       // merge queries.
       $this->deleteMultiple(array_keys($items));
@@ -278,12 +278,12 @@ public function setMultiple(array $items) {
       }
 
       $query->execute();
-    }
-    catch (\Exception $e) {
-      $transaction->rollback();
-      // @todo Log something here or just re throw?
-      throw $e;
-    }
+//    }
+//    catch (\Exception $e) {
+//      $transaction->rollback();
+//      // @todo Log something here or just re throw?
+//      throw $e;
+//    }
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Menu/MenuTreeStorage.php b/core/lib/Drupal/Core/Menu/MenuTreeStorage.php
index 2ed2fb0..fb0b52a 100644
--- a/core/lib/Drupal/Core/Menu/MenuTreeStorage.php
+++ b/core/lib/Drupal/Core/Menu/MenuTreeStorage.php
@@ -287,8 +287,8 @@ protected function doSave(array $link) {
     //   https://www.drupal.org/node/2302137
     $affected_menus = array();
 
-    $transaction = $this->connection->startTransaction();
-    try {
+//    $transaction = $this->connection->startTransaction();
+//    try {
       if ($original) {
         $link['mlid'] = $original['mlid'];
         $link['has_children'] = $original['has_children'];
@@ -312,11 +312,11 @@ protected function doSave(array $link) {
         $this->updateParentalStatus($original);
       }
       $this->updateParentalStatus($link);
-    }
-    catch (\Exception $e) {
-      $transaction->rollback();
-      throw $e;
-    }
+//    }
+//    catch (\Exception $e) {
+//      $transaction->rollback();
+//      throw $e;
+//    }
     return $affected_menus;
   }
 
