From: stronk7 Date: Wed, 8 Sep 2004 22:47:19 +0000 (+0000) Subject: Increase memory_limit to 128 in backups & restore. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f74fd8189806f4af904bb9ccb24aab409945541b;p=moodle.git Increase memory_limit to 128 in backups & restore. Merged from MOODLE_14_STABLE --- diff --git a/admin/cron.php b/admin/cron.php index f9b5686b92..9972b2918f 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -144,7 +144,7 @@ //Execute backup's cron //Perhaps a long time and memory could help in large sites @set_time_limit(0); - ini_set("memory_limit","56M"); + @ini_set("memory_limit","128M"); if (file_exists("$CFG->dirroot/backup/backup_scheduled.php") and file_exists("$CFG->dirroot/backup/backuplib.php") and file_exists("$CFG->dirroot/backup/lib.php") and diff --git a/backup/backup.php b/backup/backup.php index 338f128641..6f7ef15ee2 100644 --- a/backup/backup.php +++ b/backup/backup.php @@ -87,8 +87,8 @@ print_simple_box_start("center", "", "$THEME->cellheading"); //Adjust some php variables to the execution of this script - ini_set("max_execution_time","3000"); - ini_set("memory_limit","80M"); + @ini_set("max_execution_time","3000"); + @ini_set("memory_limit","128M"); //Call the form, depending the step we are if (!$launch) { diff --git a/backup/restore.php b/backup/restore.php index 12753fc810..97f1571323 100644 --- a/backup/restore.php +++ b/backup/restore.php @@ -94,8 +94,8 @@ print_simple_box_start("center", "", "$THEME->cellheading"); //Adjust some php variables to the execution of this script - ini_set("max_execution_time","3000"); - ini_set("memory_limit","80M"); + @ini_set("max_execution_time","3000"); + @ini_set("memory_limit","128M"); //Call the form, depending the step we are if (!$launch) { diff --git a/backup/try.php b/backup/try.php index b10e052704..60cd825402 100644 --- a/backup/try.php +++ b/backup/try.php @@ -20,8 +20,8 @@ backup_required_functions(); //Adjust some php variables to the execution of this script - ini_set("max_execution_time","3000"); - ini_set("memory_limit","56M"); + @ini_set("max_execution_time","3000"); + @ini_set("memory_limit","128M"); echo "
\n";