Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module improves Drupal's internal page caching by allowing you to create contextual cache IDs. It provides a framework for custom modules to define additional cache ID parts based on specific needs, like user cookies or IP addresses.

General

The Advanced Internal Page Cache module allows one to leverage Drupal core's page_cache module to build a contextual cache id.

Technical implementation

The Advanced Internal Page Cache module makes use of the Service Collector pattern and allows a service definition to be tagged with the advanced_page_cache_cid tag.

The module contains two dummy example modules (cookie_page_cache and ip_page_cache).

How to use

* Create a custom module
* Create a .service.yml definition file
* Use class directive to define a class
* Use tags directive to tag with advanced_page_cache_cid
* Use arguments directive to pass the contextual cache id value
* Create a class that implements AdvancedPageCacheInterface
* Implement the method getAdditionalCacheIdPart that returns the cache id part

Resources

Activity

Total releases
1
First release
Feb 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.0.1 Stable Feb 18, 2026