Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Drupal Camp Cebu 2017

Paul de Paula
November 27, 2017
46

Drupal Camp Cebu 2017

Paul de Paula

November 27, 2017
Tweet

Transcript

  1. Pantheon.io Why Caching? Caching means less traffic hitting your site’s

    servers. At the most basic level, cached content and processes are stored and served from your cache servers. This provides a much faster load time for visitors. And in turn means there are more resources available for the processes that cannot be cached - helping those to run faster as well!
  2. Pantheon.io Full page cache is probably the single best thing

    you can do to increase your site performance. Implementing full page cache A reverse proxy can deliver up to 200x improvement in speed and volume. Full page cache effect - cache hits load in about 0.2s, compared to 1.7s for a page load from the server. 3
  3. Pantheon.io Authenticated traffic Full page cache is great for anonymous

    users and serving static pages. 
 However, not everything can be handled with full page cache - for this we have Redis. 4
  4. Pantheon.io Varnish Caching on Pantheon Varnish caching − is in

    place automatically − preconfigured/optimized to maximize site performance − can be modified, but no custom VCL (Varnish Configuration Language)
  5. Pantheon.io 8 Massive, multi-tenant platform Dedicated infrastructure 1,000,000+ Containers 6,000,000,000+

    Pageviews/Month Big needs? We can handle them. See How it Works for more information Our Architecture
  6. Pantheon.io 9 The Edge Exterior - touching the Internet 


    Ultra-fast Varnish cache
 Intelligent Routing + Load Balancing 
 Hands off to Runtime Matrix See How it Works for more information
  7. Pantheon.io Varnish full page cache " Caches entire output "

    Abides by headers " Can be busted with cookies
  8. Pantheon.io Checking Varnish Age Use curl -I to check age

    of page using headers Age: 0 means the page isn't being cached by Varnish
  9. Pantheon.io Cache Clearing Clear the cache from your Site Dashboard

    - or Terminus to clear the application and Varnish caches $ terminus env:clear-cache <site>.<env> or $ terminus drush <site>.<env> -- cc all or $ terminus wp <site>.<env> -- cache flush Hint: If you still aren’t seeing your changes - it may be cache locally or on your network. Try an incognito browser, or checking the site from your phone with the wifi turned off (so that it is using the cellular network instead).
  10. Pantheon.io Cache Clearing Pantheon Edge is getting an upgrade. Plugin/module

    for clearing cache automatically, plays nice with REST More information on this when we review the Global CDN!
  11. Pantheon.io What is Global CDN " Preconfigured on every Pantheon

    site " Over 30 edge locations around the globe " HTTP/2 " Includes free Managed HTTPS on all domains ◦ HTTPS with an A+ rating on SSL Labs ◦ Auto renewal of certificates with Let's Encrypt ◦ No need to pay an additional monthly fee
  12. North America • Ashburn • Atlanta • Boston • Chicago

    • Dallas • Denver • Los Angeles • Miami • Minneapolis MN • Montreal • New York • San Jose • Seattle • Toronto 16 South America • São Paulo
 Europe • Amsterdam • Frankfurt 2X • London 2X • Madrid • Paris • Stockholm Africa • Johannesburg 
 Asia • Dubai • Hong Kong • Osaka • Singapore • Tokyo Australia & New Zealand • Auckland • Brisbane • Melbourne • Perth • Sydney • Wellington Pantheon Global CDN Map
  13. Pantheon.io Dedicated object cache Requests to the object cache bypass

    MySQL The object cache is served from memory and is more performant
  14. Pantheon.io Dedicated object cache " WordPress and Drupal both integrate

    with persistent/external storage backends like Redis or Memcached " Easily done with plugins/modules " This speeds up PHP execution time while lessening the load on the Database ◦ For example, WordPress transients are stored in memory instead of the database
  15. Pantheon.io Dedicated object cache Be careful not to cache too

    much information in Redis, it does have a limit. Once you have exceeded the limit, requests will pass through, uncached, to MySQL
  16. Pantheon.io Varnish Resources 41 - Pantheon Documentation: Varnish - Pantheon

    Documentation: Clearing the Cache - Pantheon Documentation: Caching: Advanced Topics - Pantheon Documentation: Working with Cookies - Pantheon Documentation: Testing Varnish - Varnish checker - Pantheon Documentation: Configuring Drupal Caching - Pantheon Documentation: Configuring Wordpress Caching
  17. Pantheon.io Global CDN/HTTPS Resources • Pantheon Documentation: Global CDN •

    Pantheon Documentation: Managed HTTPS • Pantheon Documentation: Advanced Cache (Surrogate Keys) • Pantheon Documentation: Going from HTTP to HTTPS • Pantheon Documentation: Require HTTPS with the HSTS Header • Blog: Global CDN Launch • Advanced Page Cache WordPress plugin • Advanced Page Cache Drupal Module
  18. Pantheon.io Redis Resources 43 - Pantheon Documentation: Configuring Redis on

    Drupal - Pantheon Documentation: Configuring Redis on WordPress - Redis WordPress plugin - Redis Drupal module - Blog: Why we recommend Redis