Increased server script timeout on Import page.

This commit is contained in:
Sipke Schoorstra
2015-07-16 11:01:45 +01:00
parent dbe7e30f80
commit cc59a0ed74

View File

@@ -52,6 +52,9 @@ namespace Orchard.ImportExport.Controllers {
if (!Services.Authorizer.Authorize(Permissions.Import, T("Not allowed to import.")))
return new HttpUnauthorizedResult();
// Sets the request timeout to 10 minutes to give enough time to execute custom recipes.
Services.WorkContext.HttpContext.Server.ScriptTimeout = 600;
var actions = _importActions.OrderByDescending(x => x.Priority).ToList();
var viewModel = new ImportViewModel {
Actions = actions.Select(x => new ImportActionViewModel {