~/talk

Caching in Drupal 8 has evolved: Tips on how to improve your code

Talkat DrupalCon Amsterdam 2019 · 2019-10-28..10-31· [web-performance]
links:none on file
slides:none on file

Core gains a faster in-memory layer — memory cache — that skips serialization and sits in front of persistent bins via the backend chain so expensive calculations hit RAM first and fall back to durable storage. Render work moves toward smaller, independently cached pieces to avoid churn. Missing global cache contexts cause fragile, variable cache IDs; a new variation cache (implemented in the group module, tests passing) replaces single flat redirects with a cascading redirect tree, avoids tag bloat, and already integrates with JSON:API patches.

AI-written summary · about

  1. 0:00Intro
  2. 1:25Goal of this session
  3. 2:16What is the memory cache?
  4. 4:57When do I use the memory cache?
  5. 8:21Lesson learned from the render cache
  6. 10:07Example usage in Group
  7. 13:09Why only the render cache?
  8. 15:11Variable cache IDs
  9. 16:22Example: RouteProvider
  10. 19:07Cache redirects in a nutshell
  11. 21:12RenderCache implementation
  12. 26:01Introducing the Variation Cache
  13. 33:28What did you think?
~/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.