Cache Alter
RU:
Всё ради того, чтобы на каждый запрос по переходу из рекламы не формировался свой отдельный page_cage а юзался существующий
# В самом начале загрузки друпала чистит из $request->query ключи
- utm_source
- utm_medium
- utm_campaign
- utm_term
- utm_content
- gclid
- yclid
# Везде далее, в том числе и в dynamic_page_cache - кэш формируется без этих значений
# При формировании `page_cage` берётся очищенный `$request->query`
# При формировании `page_cage` к ключу добавляется значение куки `cache_context`, которая позволяет формировать разный статик кэш в зависимости от значения в этой куке, например положить туда выбранный город.
EN:
At the very beginning of loading Drupal cleans keys from `$request->query`
- utm_source
- utm_medium
- utm_campaign
- utm_term
- utm_content
- gclid
- yclid
# Everywhere further, including in dynamic_page_cache - is formed without these values
# On the forming `page_cage`, a cleared `$request->query` is taken
# On the forming `page_cage`, the cookie value `cache_context` is added to the key, which allows you to create different static cache depending on the value in this cookie, for example, put the selected city there.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 3.0.0 | Stable | 11 | Sep 10, 2026 |