DrupalCon Seattle 2019: The Promises and Pitfalls of Drupal's Cache System

30:01
319
11
0
0
2
Apr 18, 2019

With version 8, Drupal delivered major improvements in the way content could be cached and expired. For the first time, significant caching is possible for dynamic pages and authenticated users. 

However, the caching system can be complex and confusing. Developers can inadvertently negate the advantages of Drupal’s cache systems and, even worse, create security and information disclosure holes. This presentation will provide an overview of Drupal’s cache layers and will cover best practices when theme-ing and customizing Drupal to avoid common errors and to maximize performance. 

Among the topics to be covered:

The anonymous and dynamic page caches and the render cache.
Cache bins, memcache and the differences between Drupal’s data and render caches.
Cache tags, contexts and max-age.
Debugging tools and techniques.
Common pitfalls when theme-ing and customizing Drupal.
Using #lazybuilder callbacks for dynamic content.
Leveraging reverse proxies like Varnish and content delivery networks (CDNs).
Big Pipe and custom render strategies.

Hi! I'm Karim Boudjema, the developer and site-builder of this site. I'm currently working as a freelance Drupal developer.

I was wondering how could I giving back to the Drupal community all what it gave to me during the last 10 years, that's how the idea of this site came to me ... (read more)

Hi! I’m Santiago Rico, the web designer and themer of this site.

When Karim proposed me to design and theme this site for the Drupal community, I accepted immediately because the community is the main reason why I love Drupal so much.