Cache everything

Caching should be considered as a last resort during the development process. If you have to wait minutes for first DB response and then you cache the results to make consequent requests faster - in 90% of cases this is a design problem of the application. Try to discuss slow DB response problem within a team or with experienced DBA guy.

Rule of thumb caching should be used to make response from 50ms to 25ms, not from 1 minute to 10 seconds.

Get the latest posts delivered right to your inbox.