Skip to main content
David Loor
AboutServicesProjectsBlogContact
←Back to Blog

#cache

1 articles tagged cache.

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.

No spam. Unsubscribe at any time.

Archive
  • Drupal preprocess hooks: Why cache context matters
David Loor

AI, Cloud & Web Solutions Architect

AboutServicesProjectsBlogBookshelf

© 2026 David Loor. All rights reserved.

david@davidloor.com