From 06f47d44ddcf824628de7d1ea48612b14711b8be Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Tue, 29 Mar 2011 12:14:41 -0700 Subject: [PATCH] Initializing shells in warmup to speed up the first dynamic query --HG-- branch : 1.x --- src/Orchard.Startup/Starter.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Orchard.Startup/Starter.cs b/src/Orchard.Startup/Starter.cs index 3c090bc3f..cb8b4b3bc 100644 --- a/src/Orchard.Startup/Starter.cs +++ b/src/Orchard.Startup/Starter.cs @@ -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(); + } }); } }