Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Preserve page cache

Security covered Obsolete 1 sites

This module disables Drupal's internal page cache tag-based invalidation, allowing external caches like reverse proxies and CDNs to manage cache expiration. It keeps the node ID tag for immediate invalidation of node pages when they are updated.

The module customizes Drupal's page cache to disable tag based invalidation (of the page cache only).

When reverse proxy or CDNs without tag-based cache invalidation rules are in used, other (time-based, url-based) purging strategies must be applied. In that scenario it's beneficial to keep the internal page cache of Drupal active just as external caches, so that in case of external cache misses (e.g. due to cache size constraints or per-region caches) the page can be served from Drupal's cache again.

The module is achieving this by not setting cache tags when writing cache entries, so caches are not invalidated by different cache tags but only expire after a certain time.

The module comes with one exception: It keeps the node:{ID} cache tag for node pages, so those are invalidated on updates immediately.

Contribute

Drupal 8–10 · not 11

Ask your assistant about Preserve 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
  • path_alias Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-1.6 Stable 8–10 Dec 12, 2023
8.x-1.5 Stable 8–9 Sep 27, 2023