diff --git a/src/Orchard/Mvc/MvcModule.cs b/src/Orchard/Mvc/MvcModule.cs index 6d2334e75..7814cd1e3 100644 --- a/src/Orchard/Mvc/MvcModule.cs +++ b/src/Orchard/Mvc/MvcModule.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.Collections.Specialized; using System.Globalization; using System.Web; +using System.Web.Caching; using System.Web.Instrumentation; using System.Web.Mvc; using System.Web.Routing; @@ -87,6 +88,7 @@ namespace Orchard.Mvc { class HttpContextPlaceholder : HttpContextBase { private readonly Lazy _baseUrl; private readonly IDictionary _items = new Dictionary(); + private readonly Cache _cache = new Cache(); public HttpContextPlaceholder(Func baseUrl) { _baseUrl = new Lazy(baseUrl); @@ -109,6 +111,10 @@ namespace Orchard.Mvc { public override PageInstrumentationService PageInstrumentation { get { return new PageInstrumentationService(); } } + + public override Cache Cache { + get { return _cache; } + } } private class HttpResponsePlaceholder : HttpResponseBase {