forked from moodlehq/moodle-performance-comparison
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php.template
55 lines (43 loc) · 1.54 KB
/
config.php.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = '%%dbtype%%';
$CFG->dblibrary = 'native';
$CFG->dbhost = '%%dbhost%%';
$CFG->dbname = '%%dbname%%';
$CFG->dbuser = '%%dbuser%%';
$CFG->dbpass = '%%dbpass%%';
$CFG->prefix = '%%dbprefix%%';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbsocket' => 0,
);
$CFG->wwwroot = '%%wwwroot%%';
$CFG->dataroot = '%%dataroot%%';
$CFG->admin = 'admin';
// No debug! it changes db reads and db writes values.
$CFG->debug = false;
$CFG->debugdisplay = false;
// No cache_text to have results as stable as possible.
$CFG->cachetext = 0;
// Time between threads accesses are randomly generated so we can
// not have stable results with the core LASTACCESS_UPDATE_SECS value.
// Moodle will try to define it again, the php error will be hidden with
// debug mode disabled. https://tracker.moodle.org/browse/MDL-41910
define('LASTACCESS_UPDATE_SECS', 9999999999);
// Set the generated users password to avoid the default non-loggeable one.
$CFG->tool_generator_users_password = '%%toolgeneratorpassword%%';
// Using file sessions.
$CFG->dbsessions = false;
if (!defined('CLI_SCRIPT')) {
define('MDL_PERF_TEST', true);
define('MDL_PERF', true);
define('MDL_PERFDB', true);
define('MDL_PERFTOLOG', true);
define('MDL_PERFTOFOOT', true);
}
$CFG->directorypermissions = 0777;
require_once(dirname(__FILE__) . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!