mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Increased server script timeout on Import page.
This commit is contained in:
@@ -52,6 +52,9 @@ namespace Orchard.ImportExport.Controllers {
|
|||||||
if (!Services.Authorizer.Authorize(Permissions.Import, T("Not allowed to import.")))
|
if (!Services.Authorizer.Authorize(Permissions.Import, T("Not allowed to import.")))
|
||||||
return new HttpUnauthorizedResult();
|
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 actions = _importActions.OrderByDescending(x => x.Priority).ToList();
|
||||||
var viewModel = new ImportViewModel {
|
var viewModel = new ImportViewModel {
|
||||||
Actions = actions.Select(x => new ImportActionViewModel {
|
Actions = actions.Select(x => new ImportActionViewModel {
|
||||||
|
|||||||
Reference in New Issue
Block a user