1.20.x system.install system_update_1033()

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

Related topics

File

modules/system/system.install, line 2576
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();
  }
}