Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Advanced Internal Page Cache

Security covered Maintenance fixes only 27 sites

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

Drupal 9–11

Ask your assistant about Advanced Internal Page Cache

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

  • page_cache Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Feb 2023
Latest release
7 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.1 Stable 9–11 Feb 18, 2026
2.0.0 Stable 9–10 Feb 19, 2023
2.x-dev Dev 9–11 Feb 19, 2023