Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Caching 101 - WordCamp OC

461 views

Published on

This talk covers ways to make your site run faster regardless of your hosting provider or host type as well as some of the commonly used plugins and caching strategies. The fucus is on RAM or the use of a Managed WordPress hosting that is already optimized for you.

Published in: Education
  • Be the first to comment

  • Be the first to like this

Caching 101 - WordCamp OC

  1. 1. Eugene Kovshilovsky @mediatemple * WordCamp Orange County 2016 * Caching 101
  2. 2. Hello. Eugene Kovshilovsky Director of Engineering at Media Temple @ekovshilovsky @mediatemple
  3. 3. Agenda • Caching Definition • Caching Performance • Caching Locations • Plugins to Check Out • Takeaways • Q&A
  4. 4. Agenda • Caching Definition • Caching Performance • Caching Locations • Plugins to Check Out • Takeaways • Q&A
  5. 5. “A temporary storage space or memory that allows fast access to data” Definition of caching
  6. 6. Why does caching matter? DB WordPress Web Server OpCachePHP WordPress Web Server ✔
  7. 7. Agenda • Caching Definition • Caching Performance • Caching Locations • Plugins to Check Out • Takeaways • Q&A
  8. 8. Hardware caching performance RAM SSD HDD - Spinning Disks 20 GB/s 4M IOPS 600 MB/s 300K IOPS 200 MB/s 100 IOPS
  9. 9. Performance with multiple servers Reverse Proxy Web App Object Cache MySQLWeb App DB Cache CDN Cache Page Cache Local Cache Local Cache
  10. 10. Agenda • Caching Definition • Caching Performance • Caching Locations • Plugins to Check Out • Takeaways • Q&A
  11. 11. Hosting environments ●Shared hosting ●Virtual Private Server hosting (VPS) ●Dedicated hosting
  12. 12. Shared hosting Load Balancer Web App MySQL Web App NAS (SSD) Application Server Farm File Cache FS Cache FS Cache DB Cache
  13. 13. Dedicated & VPS hosting VPS Hosting My VPS VPS RAM ... Storage (SSD?) RAM Storage (SSD?) Dedicated Hosting File Cache File Cache
  14. 14. Case Study: Media Temple’s Enterprise WordPress Reverse Proxy Web App Object Cache MySQLWeb App DB Cache CDN Cache Page Cache Op Cache Op Cache Redis or Memcache NGiNX, Varnish or ATS PHP-FPM or Apache
  15. 15. Content Delivery Network (CDN)
  16. 16. Amazon S3 vs. CDN Amazon S3 ●Unlimited FTP server ●Low-cost file storage in one specific geographical region CDN (Content Delivery Network) ●Proxies and caches web data at edge locations as close to users as possible
  17. 17. Agenda • Caching Definition • Caching Performance • Caching Locations • Plugins to Check Out • Takeaways • Q&A
  18. 18. Caching plugins to check out • W3 Total Cache • Redis Object Cache • BatCache • WP Super Cache
  19. 19. W3 Total Cache • All-in-one • Compatibility check and configuration UI • Page, database, and object cache via shared disk or Memcache • Drop-in: advanced-cache.php
  20. 20. Redis Object Cache • Object cache only • Simple UI • Object cache with Redis • Not for shared hosting
  21. 21. BatCache • Object cache only • No UI • Object cache with Memcache • Installation requires copying files • Not for shared hosting
  22. 22. WP Super Cache • File-based page cache only • Shared hosting or single server only • Drop-in: advanced-cache.php
  23. 23. Agenda • Caching Definition • Caching Performance • Caching Locations • Plugins to Check Out • Takeaways • Q&A
  24. 24. • If you are WordPress plugin developer → Mimic multiple configuration scenarios. • If you are a WordPress theme / WordPress site developer → Stage your site and have someone test it. Takeaways
  25. 25. Agenda • Caching Definition • Caching Performance • Caching Locations • Plugins to Check Out • Takeaways • Q&A
  26. 26. Q&A @ekovshilovsky @mediatemple ekovshilovsky@mediatemple.net - mediatemple.net
  27. 27. Thank you! @ekovshilovsky @mediatemple ekovshilovsky@mediatemple.net - mediatemple.net

×