Hacker News new | ask | show | jobs
by SigmundA 2023 days ago
"There are only two hard things in Computer Science: cache invalidation and naming things."

Seriously don't build a cache until you have exhausted all other performance improving avenues. I am not against caches but throwing a new cache in the code every time a performance issue is found or worse preemptively making a cache due to a possible performance issue is an endless source of cache invalidation bugs.

1 comments

Yes don't cache everything needlessly, use it wisely