Skip to main content
David Loor
ProjectsBlogBooksContact
←Back to Blog

#Render Api

1 post with this tag

Found 1 post

Drupal preprocess hooks: Why cache context matters

2025-09-06

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

© 2025 David Loor. All rights reserved.

Built with Next.js and Tailwind CSS