MCPcopy
hub / github.com/codeaashu/claude-code / clearMemoryFileCaches

Function clearMemoryFileCaches

src/utils/claudemd.ts:1119–1122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1117 * compaction), use resetGetMemoryFilesCache() instead.
1118 */
1119export function clearMemoryFileCaches(): void {
1120 // ?.cache because tests spyOn this, which replaces the memoize wrapper.
1121 getMemoryFiles.cache?.clear?.()
1122}
1123
1124export function resetGetMemoryFilesCache(
1125 reason: InstructionsLoadReason = 'session_start',

Callers 9

setupFunction · 0.85
callFunction · 0.85
resetGetMemoryFilesCacheFunction · 0.85
restoreWorktreeForResumeFunction · 0.85
exitRestoredWorktreeFunction · 0.85
callFunction · 0.85
pullTeamMemoryFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected