Skip to main content
David Loor
AboutServicesProjectsBlogContact
←Back to Blog

#Cache

1 post with this tag

Found 1 post
2025-09-06
8 min read

Drupal preprocess hooks: Why cache context matters

If you change block output based on the current path, you must add the `url.path` cache context. Otherwise Drupal will reuse a cached version across pages and show the wrong content.

DrupalCachingPerformance

Stay Updated

Get the latest posts and insights delivered to your inbox.

Unsubscribe anytime. No spam, ever.

Blog archive
  • Drupal preprocess hooks: Why cache context matters
David Loor

AI, Cloud & Web Solutions Architect

AboutServicesProjectsBlogBookshelf

© 2026 David Loor. All rights reserved.

davo20019@gmail.com