1 system.install | system_update_1003() |
Convert performance module settings to use configuration files.
Related topics
File
- core/
modules/ system/ system.install, line 1737 - Install, update and uninstall functions for the system module.
Code
function system_update_1003() {
$config = config('system.core');
$config->set('cache', update_variable_get('cache', 0));
$config->set('cache_lifetime', update_variable_get('cache_lifetime', '0'));
$config->set('page_cache_maximum_age', update_variable_get('page_cache_maximum_age', '0'));
$config->set('page_compression', update_variable_get('page_compression', 1));
$config->set('preprocess_css', update_variable_get('preprocess_css', 0));
$config->set('preprocess_js', update_variable_get('preprocess_js', 0));
$config->save();
update_variable_del('cache');
update_variable_del('cache_lifetime');
update_variable_del('page_cache_maximum_age');
update_variable_del('page_compression');
update_variable_del('preprocess_css');
update_variable_del('preprocess_js');
}