1 system.install system_update_1033()

Set the minimum page cache lifetime to 5 minutes by default.

Related topics

File

core/modules/system/system.install, line 2566
Install, update and uninstall functions for the system module.

Code

function system_update_1033() {
  $config = config('system.core');
  if ($config->get('page_cache_maximum_age') == 0) {
    $config->set('page_cache_maximum_age', 300);
    $config->save();
  }
}