Building a Translation Cache That Works
How to design a translation cache with proper key structure, invalidation strategy, and the cost savings math to justify the effort.
Every translation API charges per character. None of them (except auto18n) cache results for you. If you translate "Save" to Spanish on Monday and again on Friday, you pay twice. At scale, this is a massive waste.
Here's how to build a translation cache that actually saves money.
The Cache Key Problem
The obvious cache key is source_text + target_language. But that's not enough.