{"version":"2.1.333","anchor":"sessionmeasure-now-reports-promptcache-usage","canonical_anchor":"sessionmeasure-now-reports-promptcache-usage","heading":"Prompt cache usage now reported in session measurements and usage changes","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/sessionmeasure-now-reports-promptcache-usage","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Prompt cache usage now reported in session measurements and usage changes\n\nA promptCache figure now travels with session.measure usage reports, and changes to it are reported as usage changes\n\n**What**\n\nThe prompt cache is where Claude's API keeps recently sent conversation text so it does not have to be processed again. Claude Code now passes prompt-cache usage along with its other usage figures:\n\n- `session.measure` reports now include a `promptCache` field when the usage data has one. This sits next to the existing `context`, `rateLimits` and `cost` fields. `session.measure` is an event that plugins and hooks (scripts that run automatically at set points) can respond to.\n\n- The usage change report, which also feeds status data, now reports a `promptCache` change whenever `usage.promptCache` differs.\n\n**Why**\n\nTools and hosts that read session measurements or usage changes can now see prompt-cache figures, not just context size, rate limits and cost.\n\n- Area: SDK\n- Names: `session.measure`, `promptCache`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}