mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-40627 add 2G extramemorylimit option to admin UI and use the same units in config-dist.php to prevent confusion
Credit goes to Julien Boulen, thanks for spotting this.
This commit is contained in:
parent
ffc3f5308b
commit
0a08cb4030
2 changed files with 3 additions and 2 deletions
|
@ -182,7 +182,8 @@ $temp->add(new admin_setting_configselect('extramemorylimit', new lang_string('e
|
||||||
'128M' => '128M',
|
'128M' => '128M',
|
||||||
'256M' => '256M',
|
'256M' => '256M',
|
||||||
'512M' => '512M',
|
'512M' => '512M',
|
||||||
'1024M' => '1024M'
|
'1024M' => '1024M',
|
||||||
|
'2048M' => '2048M',
|
||||||
)));
|
)));
|
||||||
$temp->add(new admin_setting_configtext('curlcache', new lang_string('curlcache', 'admin'),
|
$temp->add(new admin_setting_configtext('curlcache', new lang_string('curlcache', 'admin'),
|
||||||
new lang_string('configcurlcache', 'admin'), 120, PARAM_INT));
|
new lang_string('configcurlcache', 'admin'), 120, PARAM_INT));
|
||||||
|
|
|
@ -392,7 +392,7 @@ $CFG->admin = 'admin';
|
||||||
// memory limit to something higher.
|
// memory limit to something higher.
|
||||||
// The value for the settings should be a valid PHP memory value. e.g. 512M, 1G
|
// The value for the settings should be a valid PHP memory value. e.g. 512M, 1G
|
||||||
//
|
//
|
||||||
// $CFG->extramemorylimit = '1G';
|
// $CFG->extramemorylimit = '1024M';
|
||||||
//
|
//
|
||||||
// Moodle 2.4 introduced a new cache API.
|
// Moodle 2.4 introduced a new cache API.
|
||||||
// The cache API stores a configuration file within the Moodle data directory and
|
// The cache API stores a configuration file within the Moodle data directory and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue