Skip to content
Snippets Groups Projects
Select Git revision
  • d8a0b0455aa731c61432ebaf8cdba3c42ea38426
  • master default protected
2 results

tox.ini

Blame
  • Forked from pipelines / tools / gitlab-deps
    Source project has a limited visibility.
    db-config.php 619 B
    <?php
    
    // Common settings
    $wpdb->persistent = true;
    $wpdb->max_connections = 30;
    
    define("NOBLOGS_BACKEND_CONFIG", "/etc/noblogs/backends");
    
    include_once('r2db/db-hash.php');
    include_once('r2db/db-backends.php');
    
    // Add the global database (configured in wp-config.php), stores the global
    // blogs and users tables.
    $wpdb->add_database(array(
        "host" => DB_HOST,
        "user" => DB_USER,
        "password" => DB_PASSWORD,
        "name" => DB_NAME,
        "dataset" => "global",
        "write" => 1, "read" => 1, "timeout" => 2
        ));
    
    $wpdb_reverse_backend_map = noblogs_load_backends(NOBLOGS_BACKEND_CONFIG, $wpdb->hash_map);