Commit c7edf435 authored by catch's avatar catch

Issue #2181289 by mradcliffe: Prevent exceptions on missing cache table during...

Issue #2181289 by mradcliffe: Prevent exceptions on missing cache table during cache clear for pgsql.
parent 048cd451
......@@ -209,7 +209,12 @@ public function deleteMultiple(array $cids) {
while (count($cids));
}
catch (\Exception $e) {
$this->catchException($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);
}
}
}
......@@ -241,7 +246,12 @@ public function deleteAll() {
$this->connection->truncate($this->bin)->execute();
}
catch (\Exception $e) {
$this->catchException($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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment