<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Prompt Caching on Ted Factory</title><link>https://tedfactory.com/en/tags/prompt-caching/</link><description>Recent content in Prompt Caching on Ted Factory</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 20 Aug 2026 01:41:07 +0900</lastBuildDate><atom:link href="https://tedfactory.com/en/tags/prompt-caching/index.xml" rel="self" type="application/rss+xml"/><item><title>I Dug Into Prompt Caching and Found That Hit Rate Isn't the Goal</title><link>https://tedfactory.com/en/notes/essays/prompt-caching-deep-dive/</link><pubDate>Wed, 05 Aug 2026 00:00:00 +0900</pubDate><guid>https://tedfactory.com/en/notes/essays/prompt-caching-deep-dive/</guid><description>&lt;h1 id="i-dug-into-prompt-caching-and-found-that-hit-rate-isnt-the-goal"&gt;I Dug Into Prompt Caching and Found That Hit Rate Isn&amp;rsquo;t the Goal&lt;a class="anchor" href="#i-dug-into-prompt-caching-and-found-that-hit-rate-isnt-the-goal"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;2026-08-05&lt;/p&gt;
&lt;p&gt;&lt;img src="https://tedfactory.com/images/notes/prompt-caching-deep-dive-cover.png" alt="Prompt content stacked like geological strata by change frequency, with the lower layers reused from cache" /&gt;&lt;/p&gt;
&lt;h2 id="it-started-with-where-does-this-actually-happen"&gt;It Started With &amp;ldquo;Where Does This Actually Happen?&amp;rdquo;&lt;a class="anchor" href="#it-started-with-where-does-this-actually-happen"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I knew prompt caching reduced costs. My understanding went about as far as: when you send the same system prompt repeatedly, it gets cheaper from the second request onward.&lt;/p&gt;
&lt;p&gt;But the more I thought about it, the stranger it seemed. If caching happens in &lt;strong&gt;some relay layer outside the model&lt;/strong&gt;, then from the model&amp;rsquo;s point of view nothing is saved. And yet the savings are said to reach 90%. Would that mean most of the cost of using an LLM (Large Language Model) comes not from the model itself but from the layer around it?&lt;/p&gt;</description></item></channel></rss>