db-config.php 582 Bytes
Newer Older
lechuck's avatar
lechuck committed
1 2
<?php

3
// Common settings
Joe Oblivian's avatar
Joe Oblivian committed
4
$wpdb->persistent = true;
5 6
$wpdb->max_connections = 30;

7 8 9 10
/* Disable responsiveness check, is not needed in our configuration and is causing 
 connection errors for the wrong implementation */
$wpdb->check_tcp_responsiveness = false;

11 12
include_once('r2db/db-hash.php');
include_once('r2db/db-backends.php');
lechuck's avatar
lechuck committed
13

14
// Set up global dataset with master databases
joe's avatar
joe committed
15
noblogs_load_global_dataset(NOBLOGS_MASTER_CONFIG, NOBLOGS_HOST_FILE);
16 17

// Add all the sharded blog databases.
18
$wpdb_reverse_backend_map = noblogs_load_backends(NOBLOGS_BACKEND_CONFIG, $wpdb->hash_map);