mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Increase memory_limit to 128 in backups & restore.
This commit is contained in:
parent
ba9b14e1e8
commit
fe20798cb6
4 changed files with 7 additions and 7 deletions
|
@ -144,7 +144,7 @@
|
||||||
//Execute backup's cron
|
//Execute backup's cron
|
||||||
//Perhaps a long time and memory could help in large sites
|
//Perhaps a long time and memory could help in large sites
|
||||||
@set_time_limit(0);
|
@set_time_limit(0);
|
||||||
ini_set("memory_limit","56M");
|
@ini_set("memory_limit","128M");
|
||||||
if (file_exists("$CFG->dirroot/backup/backup_scheduled.php") and
|
if (file_exists("$CFG->dirroot/backup/backup_scheduled.php") and
|
||||||
file_exists("$CFG->dirroot/backup/backuplib.php") and
|
file_exists("$CFG->dirroot/backup/backuplib.php") and
|
||||||
file_exists("$CFG->dirroot/backup/lib.php") and
|
file_exists("$CFG->dirroot/backup/lib.php") and
|
||||||
|
|
|
@ -87,8 +87,8 @@
|
||||||
print_simple_box_start("center", "", "$THEME->cellheading");
|
print_simple_box_start("center", "", "$THEME->cellheading");
|
||||||
|
|
||||||
//Adjust some php variables to the execution of this script
|
//Adjust some php variables to the execution of this script
|
||||||
ini_set("max_execution_time","3000");
|
@ini_set("max_execution_time","3000");
|
||||||
ini_set("memory_limit","80M");
|
@ini_set("memory_limit","128M");
|
||||||
|
|
||||||
//Call the form, depending the step we are
|
//Call the form, depending the step we are
|
||||||
if (!$launch) {
|
if (!$launch) {
|
||||||
|
|
|
@ -94,8 +94,8 @@
|
||||||
print_simple_box_start("center", "", "$THEME->cellheading");
|
print_simple_box_start("center", "", "$THEME->cellheading");
|
||||||
|
|
||||||
//Adjust some php variables to the execution of this script
|
//Adjust some php variables to the execution of this script
|
||||||
ini_set("max_execution_time","3000");
|
@ini_set("max_execution_time","3000");
|
||||||
ini_set("memory_limit","80M");
|
@ini_set("memory_limit","128M");
|
||||||
|
|
||||||
//Call the form, depending the step we are
|
//Call the form, depending the step we are
|
||||||
if (!$launch) {
|
if (!$launch) {
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
backup_required_functions();
|
backup_required_functions();
|
||||||
|
|
||||||
//Adjust some php variables to the execution of this script
|
//Adjust some php variables to the execution of this script
|
||||||
ini_set("max_execution_time","3000");
|
@ini_set("max_execution_time","3000");
|
||||||
ini_set("memory_limit","56M");
|
@ini_set("memory_limit","128M");
|
||||||
|
|
||||||
echo "<pre>\n";
|
echo "<pre>\n";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue