Skip to main content
David Loor
AboutServicesProjectsBlogContact
←Back to Blog

#cache

1 articles tagged cache.

Found 1 post
Sep 6, 2025
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.

DrupalWeb development

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 Engineer & Architect

AboutServicesProjectsBlogBookshelf

© 2026 David Loor. All rights reserved.

david@davidloor.com