Skip to main content
David Loor
项目博客书籍联系
←Back to Blog

#Cache Contexts

1 post with this tag

已找到 1 篇文章

Drupal 预处理钩子:为什么 `url.path` 缓存上下文很重要

2025-09-06

如果您根据当前路径更改块的输出,则必须添加 `url.path` 缓存上下文。否则,Drupal 将在页面之间重用缓存版本并显示错误的内容。

DrupalCachingPerformance

© 2025 David Loor. All rights reserved.

Built with Next.js and Tailwind CSS