Active
Project:
Fastly
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2022 at 05:04 UTC
Updated:
1 Apr 2022 at 05:11 UTC
Jump to comment: Most recent
Let's add this hook_form_FORM_ID_alter in fastly.module like in Purge module so that we can set up higher values for max age:
/**
* Implements hook_form_FORM_ID_alter().
*
* Add some serious options to the page_cache_maximum_age setting.
*/
function fastly_form_system_performance_settings_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['caching']['page_cache_maximum_age']['#options'][604800] = t("1 week");
$form['caching']['page_cache_maximum_age']['#options'][2764800] = t("1 month");
$form['caching']['page_cache_maximum_age']['#options'][16588800] = t("6 months");
$form['caching']['page_cache_maximum_age']['#options'][31536000] = t("1 year (recommended for external cache invalidation)");
}Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments