By default, we will use a persistent cache for the client cache. This will allow us to keep the cache across restarts of the server and it will also reduce the amount of time it takes to start the server while reducing the amount of memory used. This change also includes a validation of the cache schema version. If the schema version is different from the one expected, the cache will be reset/recreated. (cherry picked from commit cf8a51f3834033b7f986a9a7e091ab31c4328415)
12 lines
298 B
SQL
12 lines
298 B
SQL
-- Copyright (c) HashiCorp, Inc.
|
|
-- SPDX-License-Identifier: BUSL-1.1
|
|
|
|
-- cannot vacuum from within a transaction, so we're not using a transaction
|
|
-- when running these statements
|
|
PRAGMA writable_schema = 1;
|
|
DELETE FROM sqlite_master;
|
|
PRAGMA writable_schema = 0;
|
|
VACUUM;
|
|
PRAGMA integrity_check;
|
|
|