Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Cache Alter

Security covered Under active development 68 sites

This module helps improve caching by removing tracking parameters from URLs before cache keys are generated. It ensures that identical content accessed through different tracking links is served from the same cache entry, while still allowing for cache variations based on user-defined contexts like selected city. This approach optimizes cache usage without sacrificing essential personalization.

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.

Drupal 11 · not 10

Ask your assistant about Cache Alter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Tracked releases
10
Tracked since
Jul 2023
Latest release
1 month ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.x-dev Dev 11 Sep 14, 2026
3.0.2 Stable 11 Sep 13, 2026
3.0.1 Stable 11 Sep 11, 2026
3.0.0 Stable 11 Sep 10, 2026
8.x-2.2 Stable 10–11 Jun 21, 2024
8.x-2.1 Stable 10 Jul 31, 2023
8.x-2.0 Stable 10 Jul 31, 2023
8.x-1.7 Stable 8–9 Jul 28, 2023
8.x-1.6 Stable 8–10 Jul 28, 2023
8.x-1.5 Stable 8–10 Jul 28, 2023