commit 3929afde229ea287092da33d6c91fe9f54df9606 Author: Matthew Radcliffe Date: Fri Aug 16 18:13:40 2013 -0500 Issue #2001350 by mradcliffe: Add comments to the band-aid fix for cache_menu, cache_block. diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php index d8402ae..a827cc9 100644 --- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php +++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php @@ -210,6 +210,9 @@ public function deleteMultiple(array $cids) { while (count($cids)); } catch (\Exception $e) { + // Create the cache table, which will be empty. This fixes cases during + // core install where a cache table is cleared before it is set + // with {cache_block} and {cache_menu}. if (!$this->ensureBinExists()) { $this->catchException($e); } @@ -244,6 +247,9 @@ public function deleteAll() { $this->connection->truncate($this->bin)->execute(); } catch (\Exception $e) { + // Create the cache table, which will be empty. This fixes cases during + // core install where a cache table is cleared before it is set + // with {cache_block} and {cache_menu}. if (!$this->ensureBinExists()) { $this->catchException($e); }