We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d4830 commit 9f23decCopy full SHA for 9f23dec
packages/gatsby/src/datastore/lmdb/lmdb-datastore.ts
@@ -93,7 +93,12 @@ function getDatabases(): ILmdbDatabases {
93
// FIXME: sharedStructuresKey breaks tests - probably need some cleanup for it on DELETE_CACHE
94
// sharedStructuresKey: Symbol.for(`structures`),
95
// @ts-ignore
96
- cache: true,
+ cache: {
97
+ // expirer: false disables LRU part and only take care of WeakRefs
98
+ // this way we don't retain nodes strongly, but will continue to
99
+ // reuse them if they are loaded already
100
+ expirer: false,
101
+ },
102
}),
103
nodesByType: rootDb.openDB({
104
name: `nodesByType`,
0 commit comments