1 system.install system_update_1094()

Enable static caching of the "system.date" configuration file.

Related topics

File

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

Code

function system_update_1094() {
  $config = config('system.date');
  $data = $config->get();
  // Put the _config_static option at the top of the file.
  unset($data['_config_name']);
  $data = array_merge(array(
    '_config_name' => 'system.date',
    '_config_static' => TRUE,
  ), $data);
  $config->setData($data);
  $config->save();
}