mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
@@ -53,6 +53,9 @@ namespace Orchard.ImportExport.Controllers {
|
||||
}
|
||||
|
||||
if (ModelState.IsValid) {
|
||||
// Sets the request timeout to 10 minutes to give enough time to execute custom recipes.
|
||||
Services.WorkContext.HttpContext.Server.ScriptTimeout = 600;
|
||||
|
||||
var executionId = _importExportService.Import(new StreamReader(Request.Files["RecipeFile"].InputStream).ReadToEnd());
|
||||
return RedirectToAction("ImportResult", new { executionId = executionId });
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace Orchard.Setup.Controllers {
|
||||
|
||||
[HttpPost, ActionName("Index")]
|
||||
public ActionResult IndexPOST(SetupViewModel model) {
|
||||
// sets the setup request timeout to 10 minutes to give enough time to execute custom recipes.
|
||||
// sets the setup request timeout to 10 minutes to give enough time to execute custom recipes.
|
||||
HttpContext.Server.ScriptTimeout = 600;
|
||||
|
||||
var recipes = OrderRecipes(_setupService.Recipes());
|
||||
|
||||
Reference in New Issue
Block a user