Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Balancing Act of Caching LoopConf 2018
1. @mlteal | #loopconf | 2018
The Balancing Act of
Caching in WordPress
“[Cache] rules everything around me”
2. @mlteal | #loopconf | 2018
Maura Teal (@mlteal)
Software Engineer at Pagely.
Previously Sr Dev at Time Inc.
Emoji and meme enthusiast:
github.com/mlteal/custom-emoji
17. @mlteal | #loopconf | 2018
Do I need to cache more?
• Performance indicators
(Speed, CPU & memory use)
• Traffic indicators
(Any expected upticks?)
• Use of external API’s
• Content and access goals
18. @mlteal | #loopconf | 2018
Do I need to cache more?
• Performance indicators
(Speed, CPU & memory use)
19. @mlteal | #loopconf | 2018
Do I need to cache more?
• Traffic indicators
(Any expected upticks?)
22. @mlteal | #loopconf | 2018
Browser Cache API
• Fully frontend-focused solution.
• Store data directly in browser's cache.
• Use sparingly. With great power…
• Depending on the API, not fully supported across
browsers.
23. @mlteal | #loopconf | 2018
Browser Cache API
caches.open('my-cache').then((cache) => {
// do something with cache...
});
25. @mlteal | #loopconf | 2018
Lessons Learned at Scale
• Cache warming is real
• There is such a thing as caching too much
• Significantly reducing load is great, but still need
to handle clearing or refreshing data without
bringing the site down!
26. @mlteal | #loopconf | 2018
Lessons Learned at Scale
• Load test before big events
• Knowledge is power—anyone working at scale
should load test
27. @mlteal | #loopconf | 2018
Lessons Learned at Scale
• Expired != deleted
• Unless there’s a specific garbage collection
process in place, cached data, especially transients
in the DB, have a way of hanging around.
28. @mlteal | #loopconf | 2018
Lessons Learned at Scale
• Cache all you want, but you still need to write
performant code