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

Function clearPolicyLimitsCache

src/services/policyLimits/index.ts:595–608  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

593 * Clear all policy limits (session, persistent, and stop polling)
594 */
595export async function clearPolicyLimitsCache(): Promise<void> {
596 stopBackgroundPolling()
597
598 sessionCache = null
599
600 loadingCompletePromise = null
601 loadingCompleteResolve = null
602
603 try {
604 await unlink(getCachePath())
605 } catch {
606 // Ignore errors (including ENOENT when file doesn't exist)
607 }
608}
609
610/**
611 * Background polling callback

Callers 2

clearAuthRelatedCachesFunction · 0.85
refreshPolicyLimitsFunction · 0.85

Calls 3

unlinkFunction · 0.85
stopBackgroundPollingFunction · 0.70
getCachePathFunction · 0.70

Tested by

no test coverage detected