Did you clear the cache? A Contextual Tour of Rendering Efficiently

robpowell
slucero

Drush cr… drush cr… drush cr!!! We all know the scenario where you’ve made a change to the site, but when you load the page it just doesn’t seem to show. Oftentimes the solution is to clear your cache and move on, but why is that?

In this session we’ll explore how that cache is built and used. What determines when a page can be cached, and how does Drupal know when to rebuild it? How does Drupal know when to rebuild parts of a page without rebuilding everything?

Drupal 8 introduced a whole new methodology for caching: Cache tags and contexts. Using and maintaining these effectively will make your life easier and your clients love you.  We will go over real life examples and show best practices to keep your caches up to date.

Level of Knowledge

  • Attendees should be comfortable with back-end development and/or theme-level development using render arrays.

Topics to be Covered

Throughout this session we’ll explore:

  • Caching layers in Drupal
  • Existing and custom cache contexts and tags
  • Maintaining cache data throughout rendering
  • Caching during development
  • Using cache tags with proxies (Varnish, CDN, etc.)

Program tags

back end development, front end development, performance

Experience Level

Intermediate

Drupal Version