> ## Documentation Index
> Fetch the complete documentation index at: https://docs.weflayr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt caching analyzer

> Providers do not always perfectly follow what your caching settings asked for, so your LLM calls may cost more than what you expect. This page tracks those misses.

Every figure compares your actual caching, exactly as it ran, against what those same settings should have done. PS: none of the improvements the [Optimisation engine](/product/cost-optimisation) recommends are applied here.

The *Open caching analyzer* button is at the bottom of the Prompt caching card:

<Frame>
  <video src="https://mintcdn.com/weflayr/-Mt-2Smg-srMobua/images/product/caching-analyzer-open-and-list.mp4?fit=max&auto=format&n=-Mt-2Smg-srMobua&q=85&s=c2f28c66e897fbf461f343e5847673a7" poster="/images/product/caching-analyzer-open-and-list-poster.jpg" aria-label="Clicking Open caching analyzer at the bottom of the Prompt caching card, which opens the analyzer on its figures and its list of calls" controls loop muted playsInline preload="metadata" className="w-full rounded-xl" data-path="images/product/caching-analyzer-open-and-list.mp4" />
</Frame>

## Call details

Click a row to open the call's own page.

### Cache lineage

It displays the calls behind the cache entry this call read: the call that **wrote** the cache entry, the calls that read it since, and this call last. PS: Some providers' caching have their Time-To-Live (TTL) refreshed on every hit. In this case the penultimate call is labeled *Cache last refreshed by*.

<Frame>
  <video src="https://mintcdn.com/weflayr/-Mt-2Smg-srMobua/images/product/caching-analyzer-lineage.mp4?fit=max&auto=format&n=-Mt-2Smg-srMobua&q=85&s=4141a965e7c8673ccc97c44dc7781c7f" poster="/images/product/caching-analyzer-lineage-poster.jpg" aria-label="Expanding a cache lineage: the write, the calls that read the entry since, and this call last" controls loop muted playsInline preload="metadata" className="w-full rounded-xl" data-path="images/product/caching-analyzer-lineage.mp4" />
</Frame>

### Prompt

Visualize which parts of the prompt have been correctly cached and which have been missed.

<Frame>
  <img src="https://mintcdn.com/weflayr/swYZJQfBVJ4AL5hK/images/product/caching-analyzer-details.png?fit=max&auto=format&n=swYZJQfBVJ4AL5hK&q=85&s=1256faa4fd9193896e0bb123fdc88857" alt="A call's prompt with a green cached band, an orange missed band and an untinted not-cacheable remainder" width="1568" height="763" data-path="images/product/caching-analyzer-details.png" />
</Frame>
