How Kinsta used Workers and Workers KV to improve cache hit rates by 56%
Jun 21, 2023Steven Bonisteel, Paulo Paracutu

Summary
Kinsta details how they used Cloudflare Workers and Workers KV to improve cache hit rates by 56.3%. They implemented custom cache keys by appending domain ID and feature flags (like Polish) to the request URL, ensuring cache freshness upon configuration changes. They also microcached Workers KV data with a 30-second TTL, reducing KV read operations by 80% and improving responsiveness. The post provides code examples for customizing cache keys and implementing Workers KV caching logic.