Commit 5a71644a authored by catch's avatar catch

Revert "- Issue #1829400 by pfrenssen: Convert the 'maximum_replication_lag()' variable to CMI."

This reverts commit 405c5fbd.
parent 7df65c4b
......@@ -905,7 +905,7 @@ function db_ignore_slave() {
// Five minutes is long enough to allow the slave to break and resume
// interrupted replication without causing problems on the Drupal site from
// the old data.
$duration = config('system.performance')->get('maximum_replication_lag');
$duration = variable_get('maximum_replication_lag', 300);
// Set session variable with amount of time to delay before using slave.
$_SESSION['ignore_slave_server'] = REQUEST_TIME + $duration;
}
......
......@@ -2,7 +2,6 @@ cache:
page:
enabled: '0'
max_age: '0'
maximum_replication_lag: '300'
preprocess:
css: '0'
js: '0'
......
......@@ -1905,7 +1905,6 @@ function system_update_8016() {
function system_update_8017() {
update_variables_to_config('system.performance', array(
'cache' => 'cache.page.enabled',
'maximum_replication_lag' => 'maximum_replication_lag',
'page_cache_maximum_age' => 'cache.page.max_age',
'page_compression' => 'response.gzip',
'preprocess_css' => 'preprocess.css',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment