#118 - Improved caching

That will teach me to read documentation (it won't).
This commit is contained in:
Simon Cambier
2022-10-28 13:03:43 +02:00
parent 422f84c1cf
commit 9af71e3efc
4 changed files with 21 additions and 14 deletions

View File

@@ -3,7 +3,6 @@ import type { IndexedDocument } from './globals'
import { database } from './database'
import MiniSearch from 'minisearch'
import { minisearchOptions } from './search/search-engine'
import { fileToIndexedDocument } from './file-loader'
class CacheManager {
private documentsCache: Map<string, IndexedDocument> = new Map()