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

8.0.x
Dries 2012-11-02 10:52:19 -07:00
parent bfee59685f
commit 405c5fbd35
3 changed files with 3 additions and 1 deletions

View File

@ -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 = variable_get('maximum_replication_lag', 300);
$duration = config('system.performance')->get('maximum_replication_lag');
// Set session variable with amount of time to delay before using slave.
$_SESSION['ignore_slave_server'] = REQUEST_TIME + $duration;
}

View File

@ -2,6 +2,7 @@ cache:
page:
enabled: '0'
max_age: '0'
maximum_replication_lag: '300'
preprocess:
css: '0'
js: '0'

View File

@ -1905,6 +1905,7 @@ 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',