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
- Reach out at #drunomics-contribute @ the Drupal Slack!
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.