function purge_ui_form_system_performance_settings_alter in Purge 8.3
Implements hook_form_FORM_ID_alter().
Add some serious options to the page_cache_maximum_age setting.
File
- modules/
purge_ui/ purge_ui.module, line 31 - Administrative interface for Purge.
Code
function purge_ui_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)");
}