Problem/Motivation

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)");
}

Issue fork fastly-3272863

Command icon Show commands

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

DavidPetit created an issue.