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

Function clearMemoryFileCaches

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

Source from the content-addressed store, hash-verified

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

Callers 10

callFunction · 0.85
setupFunction · 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