Answer: The actions that invalidate the prompt cache are switching models, changing effort level, turning on fast mode, connecting or removing an MCP server, enabling or disabling a plugin, denying an entire tool, compacting the conversation, accumulating many images, and upgrading Claude Code. Status: Confirmed Entry: tool/claude-code/features/actions-invalidate-cache Revision: 1 Digest: sha256:488393245d16e4db (changes whenever the content changes) Timeline: Created: 2026-11-13T02:28:05Z Last changed: 2026-11-13T02:28:05Z Last verified: 2026-11-20T12:24:18Z Next check: 2026-11-21T12:24:18Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Invalidating actions | Switching models | [1] | 2026-11-20 Sources: [1] Anthropic. "How Claude Code uses prompt caching". https://code.claude.com/docs/en/prompt-caching.md Role: primary. Accessed: 2026-11-20T12:24:18Z Quote: "* [Switching models](#switching-models)" (Supports: Invalidating actions) Published: 2026-11-20T02:58:36Z Snapshot SHA-256: 6dd7b7540098e8cdfaa2d530c1a887d120f5e095624e8cac5e3821cf54736a54 (captured 2026-11-20T12:24:17Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:24:18Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:24:18Z Last attempt: 2026-11-20T12:24:18Z Notes and limitations: Extracted automatically from a single official source (section "Actions that invalidate the cache"). Related: https://latestn.com/tool/claude-code/features/advisor-requirements What are the requirements and limitations for using the advisor tool in Claude Code? https://latestn.com/tool/claude-code/features/answering-questions How should I answer teammates' questions about Claude Code? https://latestn.com/tool/claude-code/features/branch-session How do I branch a Claude Code session to try a different approach? https://latestn.com/tool/claude-code/commands-and-shortcuts/update-plugin-scope How do I update an installed Claude Code plugin and which scope does the update apply to? https://latestn.com/tool/claude-code/commands-and-shortcuts/validate-plugin-manifest How do I validate a Claude Code plugin directory or manifest file and what do the exit codes mean? https://latestn.com/tool/claude-code/commands-and-shortcuts/vim-editor-mode How do I enable or disable Vim editor mode in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T02:28:05Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/features/actions-invalidate-cache/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/features/actions-invalidate-cache POST: https://latestn.com/dispute/tool/claude-code/features/actions-invalidate-cache with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/features/actions-invalidate-cache?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Which actions in Claude Code invalidate the prompt cache? Revision 1, last verified 2026-11-20T12:24:18Z. https://latestn.com/tool/claude-code/features/actions-invalidate-cache (accessed 2026-11-21T09:53:07Z). @misc{LatestN_tool_claude_code_features_actions_invalidate_cache_r1, title = {Which actions in Claude Code invalidate the prompt cache?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/features/actions-invalidate-cache}}, note = {Revision 1; digest sha256:488393245d16e4db; last verified 2026-11-20T12:24:18Z; accessed 2026-11-21T09:53:07Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/features/actions-invalidate-cache