commit c5e2f5ca3be337d7b809d0d147638d0fe0f66b4b Author: Matthew Radcliffe Date: Thu Aug 15 15:38:20 2013 -0500 Issue #2001350 by mradcliffe: Make sure that cache table exists during install when trying to delete from them. diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php index a45d338..d8402ae 100644 --- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php +++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php @@ -210,7 +210,9 @@ public function deleteMultiple(array $cids) { while (count($cids)); } catch (\Exception $e) { - $this->catchException($e); + if (!$this->ensureBinExists()) { + $this->catchException($e); + } } } @@ -242,7 +244,9 @@ public function deleteAll() { $this->connection->truncate($this->bin)->execute(); } catch (\Exception $e) { - $this->catchException($e); + if (!$this->ensureBinExists()) { + $this->catchException($e); + } } }