{"version":"2.1.317","anchor":"prompt-caching-disable-env-vars-now-compare-models-by-identi","canonical_anchor":"prompt-caching-disable-env-vars-now-compare-models-by-identi","heading":"Per-model prompt caching switches now match other names for the same model","tier":"notice","area":"Prompt Cache","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.317\/e\/prompt-caching-disable-env-vars-now-compare-models-by-identi","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.317","markdown":"### Per-model prompt caching switches now match other names for the same model\n\nThe DISABLE_PROMPT_CACHING_* variables now also turn caching off for aliases and variants of their model, not only an exact name match\n\n**What**\n\nPrompt caching lets the service reuse parts of a prompt it has already processed, which saves time and cost. Each of these environment variables (settings you set in your shell before starting Claude Code) turns it off for one model:\n\n- `DISABLE_PROMPT_CACHING_HAIKU`\n\n- `DISABLE_PROMPT_CACHING_SONNET`\n\n- `DISABLE_PROMPT_CACHING_OPUS`\n\n- `DISABLE_PROMPT_CACHING_FABLE`\n\nBefore, each one only applied when the model name matched exactly. Now each one also applies to aliases and variants of the same model.\n\n**Why**\n\nIf you set one of these and use the model under a short alias or a variant name, caching is now turned off for it too, where before it could stay on.\n\n- Area: Prompt Cache\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}