Initializing shells in warmup to speed up the first dynamic query

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-03-29 12:14:41 -07:00
parent 200f44fb69
commit 06f47d44dd

View File

@@ -57,6 +57,12 @@ namespace Orchard.Startup {
// Execute pending actions as the host is available
WarmupHttpModule.Signal();
}
// initialize shells to speed up the first dynamic query
if (_host != null) {
_host.BeginRequest();
_host.EndRequest();
}
});
}
}