Pantheon Advanced Page Cache module is a bridge between Drupal cache metadata and the Pantheon Global CDN.
Just by turning on this module your Drupal site will start emitting the HTTP headers necessary to make the Pantheon Global CDN aware of data underlying the response. Then, when the underlying data changes (nodes and taxonomy terms are updated, user permissions changed) this module will clear only the relevant pages from the edge cache.
This module has no configuration settings of its own, just enable it and it will pass along information already present in Drupal 8 to the Global CDN.
If you want to take finer grain control of how Drupal is handling it's cache data (in ways that will interact with both the Global CDN and internal Drupal caches) consider using Views Custom Cache Tags and Cache Control Override.
Debugging
By default, Pantheon's infrastructure strips out the Surrogate-Key
response header before responses are served to clients. The contents of this header can be viewed as Surrogate-Key-Raw
by adding on a debugging header to the request.
A direct way of inspecting headers is with curl -I
. This command will make a request and show just the response headers. Adding -H "Pantheon-Debug:1"
will result in Surrogate-Key-Raw
being included in the response headers. The complete command looks like this:
curl -IH "Pantheon-Debug:1" https://dev-cache-tags-demo.pantheonsite.io/
Piping to grep
will filter the output down to just the Surrogate-Key-Raw
header:
curl -IH "Pantheon-Debug:1" https://dev-cache-tags-demo.pantheonsite.io/ | grep -i Surrogate-Key-Raw
Feedback and collaboration
For real time discussion of the module find Pantheon developers in our Power Users Slack channel. Bug reports and feature requests should be posted in the drupal.org issue queue. For code changes, please submit pull requests against the GitHub repository rather than posting patches to drupal.org.
Drupal 7 version
The Drupal 7 version of this module depends on the Drupal 8 Cache Backport module.
Project information
- Module categories: Performance
- 19,591 sites report using this module
- Created by David Strauss on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Resolves https://www.drupal.org/project/pantheon_advanced_page_cache/issues/3330412
Fixes bug 2944229
Development version: 7.x-1.x-dev updated 4 Jan 2021 at 20:41 UTC