MDL-24684 backup - basic protection against time/memory limits

This commit is contained in:
Eloy Lafuente (stronk7)
2011-06-30 03:43:50 +02:00
parent ff555b58be
commit 910c941fa8
2 changed files with 6 additions and 0 deletions
@@ -296,6 +296,9 @@ class restore_controller extends backup implements loggable {
}
public function execute_plan() {
// Basic/initial prevention against time/memory limits
set_time_limit(1 * 60 * 60); // 1 hour for 1 course initially granted
raise_memory_limit(MEMORY_EXTRA);
return $this->plan->execute();
}