MCPcopy Index your code
hub / github.com/codeaashu/claude-code / notifyCacheDeletion

Function notifyCacheDeletion

src/services/api/promptCacheBreakDetection.ts:673–682  ·  view source on GitHub ↗
(
  querySource: QuerySource,
  agentId?: AgentId,
)

Source from the content-addressed store, hash-verified

671 * expected, not a cache break.
672 */
673export function notifyCacheDeletion(
674 querySource: QuerySource,
675 agentId?: AgentId,
676): void {
677 const key = getTrackingKey(querySource, agentId)
678 const state = key ? previousStateBySource.get(key) : undefined
679 if (state) {
680 state.cacheDeletionsPending = true
681 }
682}
683
684/**
685 * Call after compaction to reset the cache read baseline.

Callers 2

cachedMicrocompactPathFunction · 0.85

Calls 2

getTrackingKeyFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected