DEV Community

Discussion on: Tell me a bug story

Collapse
 
picocreator profile image
Eugene Cheah • Edited

One word: Cache

We have cache on browser, cloudflare cdn, instance memory, shared key-value cache, the deployment package (it has its own cache, as we can have a 100 nodes pulling it for updates at 1 time), and finally the DB itself.

Having any piece of data in between serving the wrong "outdated" data, is always an exercise of buggy frustration, as you can be stuck wondering why the data is outdated. Despite deploying the latest build.

Many variants of this story, and it's always the "cache".

The solution is to clear it, the question is which one - and how.