-
Notifications
You must be signed in to change notification settings - Fork 40
/
config.php.template
63 lines (49 loc) · 1.94 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
56
57
58
59
60
61
62
63
<?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,
'fetchbuffersize' => 0, // We don't use big data and cursors lead to an excess of dbreads (AUX). Hence, disabling them.
);
$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);
// Some more settings towards results stability.
$CFG->sessiontimeout = 172800;
$CFG->session_update_timemodified_frequency = 9999999999;
$CFG->messaging = 0; // Disable messaging, it's not used with current JMX plan.
// 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;
$CFG->defaulthomepage = 0; // Our current JMX plan expects this.
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!