~/talk

Drupal 8 cache for developers

Talkat DrupalCamp Spain 2017 · 2017-05-05..05-06· [php, developer-experience]
slides:none on file

Generates a module and blocks with Drupal Console, demonstrates a “Hello user X” bug where a cached render array shows user1 to user2, and fixes it by adding the user cache context; builds a related-content block that incorrectly serves the same list across nodes and fixes it with a URL/path cache context. Shows toggling render cache via development.services.yml, uses cache.tags and max-age for config and queries, uses cache.factory so memcache works, and demos BigPipe with a 2s lazy fragment that renders after the page.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Drupal Console overview
  3. 8:51Disabling cache locally
  4. 13:03Creating a related content block
  5. 24:03Cache strategies in Drupal 8
  6. 30:20Fixing cache context issues
  7. 37:48Custom cache contexts
  8. 39:14BigPipe module demo
  9. 42:12Cache API beyond render arrays
  10. 44:45Resources and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.