~/talk

Caching Like a Pro: Best strategies for dealing with Drupal cache

Talkat DrupalCamp Poland 2023 · 2023-05-13..05-14· [web-performance, web-platform]
links:none on file
slides:none on file

Covers concrete Drupal 9 tools: use CacheableDependencyInterface and CacheableMetadata to collect and merge tags/contexts instead of hand-editing arrays, avoid breaking the render pipeline (don’t directly access child fields) or you lose invalidation, use lazy builders/BigPipe for asynchronous fragments, prefer cacheable JSON responses for GET endpoints, warm caches on deploy with hook_rebuild or cache_warmer, move high-traffic storage off the DB to a redis backend, and watch context/tag explosion and default bin limits (5,000) to prevent over-invalidation.

AI-written summary · about

  1. 0:00Introduction to caching
  2. 1:44Why caching matters
  3. 5:59Caching layers in Drupal
  4. 8:36Cache tags vs cache contexts
  5. 10:57Cache API tools
  6. 15:30Render cache and rendering
  7. 19:51Avoiding render pipeline breaks
  8. 21:34Poor caching implementation
  9. 24:44Cache contexts complexity
  10. 27:10Custom cache contexts
  11. 28:45Lazy Builder concept
  12. 31:09Cache rebuild and warming
  13. 33:35Cache bins and performance
  14. 35:46Handling cache expiration
  15. 37:04Alternative caching backends
  16. 37:51When not to cache
  17. 39:10Q&A session
~/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.