Skip to content
Exchange

What can be cached, on one card

1 file2 KB

A look inside

The first lines of caching-repeated-work.md. The whole file is in your library once you get it.

# What can be cached, on one card

A free card from MenFem's Inference 101, lesson 7: Caching: not reading the same thing twice.
The lesson, with the picture and the examples: https://menfem.com/courses/inference-101/caching-repeated-work

This is what you keep: what a cache saves, what breaks it, and how to lay out a prompt so it works.

1. A cache keeps the model's notes on the start of a prompt, so the next prompt that starts the same way is read faster and billed less.
2. It matches from the first word to the first change. A date, a name or a reshuffled tool list near the top, and everything after it is read again.
3. Order matters: fixed instructions and tools first, slow-changing documents next, the new question last.
4. It fades after minutes, or an hour if you pay (November 2026). Storing can cost extra, so a start used once a fortnight is cheaper uncached.
5. Your own app can keep whole answers to questions asked word for word, as long as the answer cannot go stale.

**The rule:** Fixed first, new last, and check your usage report for cached tokens. If there are almost none, something at the top keeps changing.

## Used once

From the lesson, on a made-up shop: "Every chat begins with the same 6,000-token returns and delivery policy, and you have hundreds of chats a day."

Answer: Cache the start. A long start, the same every time, used every few minutes. That is the textbook case for a cached start.

## Your turn

Write one case from your own work here, then go down the card line by line.
…and 8 more lines.

What is inside

  • caching-repeated-work.md2 KB

How to use it

Open it beside the job and go down the 5 lines in order, then check your answer against the rule at the bottom. It is the card from Inference 101, lesson 7 (Caching: not reading the same thing twice), with one worked example from the lesson and a space for your own case.

Run before it was listed

Tested 2026-11-29: Generated from the lesson's own keep card and checked line by line against it; used once on the lesson's made-up example, which is printed in the file.