MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / invalidateSearchCache

Function invalidateSearchCache

src/tools/semantic-search.ts:188–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186}
187
188export function invalidateSearchCache(): void {
189 cachedIndex = null;
190 cachedRootDir = null;
191 lastIndexTime = 0;
192}
193
194export async function refreshFileSearchEmbeddings(options: { rootDir: string; relativePaths: string[] }): Promise<number> {
195 const uniquePaths = Array.from(new Set(options.relativePaths.map(normalizeRelativePath).filter(Boolean)));

Callers 3

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected