# DISABLE_PROMPT_CACHING

> Set to 1, it turns prompt caching off for every model.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** DISABLE_PROMPT_CACHING_OPUS, DISABLE_PROMPT_CACHING_SONNET, DISABLE_PROMPT_CACHING_HAIKU, DISABLE_PROMPT_CACHING_FABLE

## Think of it like

It is like you never keep notes. You read the whole book each time.

## Definition

DISABLE_PROMPT_CACHING set to 1 turns prompt caching off for every model. Each request then sends the whole prompt fresh. Nothing is saved from the last one. Each model family has one too, such as the one for Opus. The all-models one wins over those.

## Example

Jack's proxy breaks on cache fields. He turns caching off to prove it, and the error goes away.

## Example code

```bash
export DISABLE_PROMPT_CACHING=1
claude
```

Turn the cache off to test a proxy.

## Why it matters

It is a quick way to check if caching is the cause of a problem.

## Common mistake

Leaving it on. Caching saves a lot of money and time on long chats.

## Three principles

- **All models.** Or one family.
- **All wins.** Over the family ones.
- **Costs more.** No saved prompt.

## Related terms

- [Prompt Caching](https://learn.benibix.com/term/ai/prompt-caching)
- [ENABLE_PROMPT_CACHING_1H](https://learn.benibix.com/term/ai/enable-prompt-caching-1h-variable)
- [CLAUDE_CODE_PROMPT_CACHE_TTL](https://learn.benibix.com/term/ai/claude-code-prompt-cache-ttl-variable)

---

Source: https://learn.benibix.com/term/ai/disable-prompt-caching-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
