db-config.php 405 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 7 8
$wpdb->max_connections = 30;

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

10
// Set up global dataset with master databases
joe's avatar
joe committed
11
noblogs_load_global_dataset(NOBLOGS_MASTER_CONFIG, NOBLOGS_HOST_FILE);
12 13

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