cached_tokens is 0 because your system prompt isn't stable
I added a [cache] log line next to our usage tracker and read usage.prompt_tokens_details.cached_tokens off a warm conversation. It said 0 . Then 1…
Tech news from the best sources
I added a [cache] log line next to our usage tracker and read usage.prompt_tokens_details.cached_tokens off a warm conversation. It said 0 . Then 1…
Why most GenAI pilots crumble after launch Most GenAI pilots don't fail because the models are bad — they fail because the surrounding system wasn't…
I ran the same query 10,000 times: almost 2 seconds of database work for an answer that never changed. The database did not fail. I just kept asking…
When I started profiling a small FastAPI service, the first chart suggested the cache was doing its job. Single requests were fast, the hit ratio sa…
Three identical prompts. Three model calls. Same answer. I saw this in a GitLab CI pipeline that runs a free model over release notes. The prompt te…
Of every performance optimization we have shipped for Laravel clients — OPcache tuning, query fixes, Redis fragment caching, queue offloading — noth…
Analogy Imagine you have built a backend API that works perfectly. You deploy it. Users start coming in. At first, everything feels fast. Then the t…
DeepSeek V4 Flash costs $0.14 per million input tokens and $0.28 per million output, with cache hits at $0.0028, and the retrained 0731 build that n…
I run a directory site: ~3,500 rows in Postgres, read over PostgREST, rendered by Next.js with revalidate on every route. The headline number in the…
Redis is a data structure server that lives in memory. It's fast because reads and writes never touch a disk during normal operation. It's versatile…
Qwen 3.8 Max bills $2 per million input tokens and $6 per million output, and its cheapest reliable configuration is not the one the API seems to of…
This is a follow-up to Kmemo: a semantic cache for LLM calls that refuses to serve you the wrong answer . If you have not read it, the one-line vers…
Next.js Sitemap Not Updating? Here's the Real Fix If your Next.js sitemap is not updating after you publish new content, you're dealing with a cache…
A prompt-cache write pays for itself after a single re-read within the TTL: the write bills 1.25x the input rate, the read bills 0.1x, so one hit al…
Claude Opus 5 and Claude Opus 4.8 bill the same $5 per million input tokens and $25 per million output, and on identical prompts the default Opus 5…
Caching can be a tricky topic, especially when pages don’t update the way you expect. I recently ran into an interesting issue while working on the…
I turned on prompt caching for an agent I run all day, watched the next invoice, and the number went up . Not by a rounding error — meaningfully up.…
Most engineers default to TTL for cache invalidation. But a simple Time-To-Live guarantees stale reads for a duration, which is unacceptable for cri…
Most API teams reach for a Redis cache or a CDN long before they've spent the one HTTP header that does the job for free. Cache-Control lets clients…
Rails Performance: Lessons from Production — #4 The first three posts were about making queries cheaper — fewer N+1s, indexes, not dragging data bac…
Cloud TTS Chirp3-HD with Caching: Fixing Voice Readout for Accessibility As a solo developer, keeping the product lean and accessible is paramount.…
I clicked the logo on one of my Laravel + Inertia sites and the homepage rendered inside Inertia's error modal — in production, on a 200 response. T…
Your LLM bill is exploding because 70% of user queries are semantically identical, yet your traditional cache ignores them completely. Even worse, i…
Book: System Design Pocket Guide: Fundamentals — Core Building Blocks for Scalable Systems Also by me: Thinking in Go (2-book series) — Complete Gui…
Originally published at thatdevpro.com . Part of ThatDevPro's open SEO + AI framework library. ThatDevPro is an SDVOSB-certified veteran-owned web +…
Related: Network Optimization for SPAs and React Apps covers the broader network optimization picture including HTTP caching and API request optimiz…
Your "Cache Invalidation is Hard" Answer Misses the Real Horror Most engineers parrot "cache invalidation is hard" as a standard interview response,…
CDN and origin caching optimization: 12 strategies that actually work If you're watching your server costs climb while page load times disappoint us…
The Auth Gateway sits in front of every authenticated request in the platform. Its latency isn't just its own latency — it's the floor for every ser…