Currently, this module uses a custom fastly_ttl
variable to for the cache-control headers (well actually, for Surrogate-Control headers)
If we were to use the page_cache_maximum_age
variable instead, which is defined in Drupal core, it would allow other modules to adjust the ttl. (You can set this variable by going to admin/config/development/performance and changing the value for "Expiration of cached pages").
This does mean we lose the ability to set the TTL from within Fastly. As currently this is grabbed through the Fastly API, and sort-of synced with the fastly_ttl
variable. But I'm not too convinced about how this is done, and I don't think this is actually useful. You would only want to set the TTL through Fastly if you weren't able to set the appropriate headers from your application, and in our case we do!
Remove the fastly_ttl
variable and use page_cache_maximum_age
instead.
page_cache_maximum_age
variable.page_cache_maximum_age
variable with the old value from fastly_ttl
in the update hookRemoval of TTL option on Faslty config page, instructions to edit this on the admin/config/development/performance page.
None
Closed: outdated
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.