mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(plugin-search): reset search index cache (#603)
This commit is contained in:
parent
1e98061021
commit
7592eafd38
@ -49,6 +49,9 @@ export async function prepareSearchIndex({
|
||||
searchOptions,
|
||||
}: SearchIndexOptions): Promise<void> {
|
||||
const start = performance.now()
|
||||
indexByLocales.clear()
|
||||
indexCache.clear()
|
||||
|
||||
const pages = isSearchable ? app.pages.filter(isSearchable) : app.pages
|
||||
await pMap(pages, p => indexFile(p, searchOptions), {
|
||||
concurrency: 64,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user