Cache TTLs: How Long is Too Long
Bhumika D. Patel
·6255 views
hey folks, i've been thinking a lot about cache time-to-live (TTL) values lately, especially for user-generated content that doesnt change *too* often but can be updated. we're seeing some stale data issues when a user edits a profile or post, and the cache entry lives for a while. we could lower the TTLs across the board, but that might increase cache misses and hit the database more often. whats your strategy for balancing freshness with performance when setting cache TTLs for data that has occasional updates?
27 comments