"Are you caching?" is a question asked early on in any yarn on web scaling advice. These conversations are much better steered by asking a more open and difficult questions "What is your caching strategy?" and “How are you implementing it?” This talk aims to briefly introduce the core concepts of caching and quickly moves to cover the best practices using Django and Flask for example code. We will let the audience know what the important questions to ask are, give them advice on how to implement the right answers, and when even the built-in core backend isn’t enough, point them to more advanced techniques and the right third party tools.
Important questions covered:
Why am I caching in the first place? Do I have to?
What is your caching strategy?
What are examples of good caching strategies?
Where do I put my cache code?
How dynamic is my content? Could I use a published cache?
Should I cache Python objects/classes, or base Python types?