MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / invalidateVaultTextSearchCache

Function invalidateVaultTextSearchCache

apps/desktop/src/main/vault.ts:1695–1700  ·  view source on GitHub ↗
(root?: string)

Source from the content-addressed store, hash-verified

1693}
1694
1695export function invalidateVaultTextSearchCache(root?: string): void {
1696 if (!cachedVaultTextSearchCandidates) return
1697 if (!root || path.resolve(cachedVaultTextSearchCandidates.root) === path.resolve(root)) {
1698 cachedVaultTextSearchCandidates = null
1699 }
1700}
1701
1702function noteMetaCacheKey(root: string, abs: string): string {
1703 return `${path.resolve(root)}\0${path.resolve(abs)}`

Callers 15

index.tsFile · 0.90
writeNoteFunction · 0.85
appendToNoteFunction · 0.85
createNoteFunction · 0.85
importExternalNoteFunction · 0.85
renameNoteFunction · 0.85
moveBetweenFoldersFunction · 0.85
emptyTrashFunction · 0.85
deleteNoteFunction · 0.85
renameFolderFunction · 0.85
deleteFolderFunction · 0.85
duplicateFolderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected