diff --git a/src/Orchard.Web/Modules/Orchard.OutputCache/Filters/OutputCacheFilter.cs b/src/Orchard.Web/Modules/Orchard.OutputCache/Filters/OutputCacheFilter.cs index 2dbd2ffc8..4af3fbeb7 100644 --- a/src/Orchard.Web/Modules/Orchard.OutputCache/Filters/OutputCacheFilter.cs +++ b/src/Orchard.Web/Modules/Orchard.OutputCache/Filters/OutputCacheFilter.cs @@ -515,14 +515,7 @@ namespace Orchard.OutputCache.Filters { } private string ComputeCacheKey(ControllerContext controllerContext, IEnumerable> parameters) { - var url = controllerContext.HttpContext.Request.RawUrl; - if (!VirtualPathUtility.IsAbsolute(url)) { - var applicationRoot = new UrlHelper(controllerContext.HttpContext.Request.RequestContext).MakeAbsolute("/"); - if (url.StartsWith(applicationRoot, StringComparison.OrdinalIgnoreCase)) { - url = "~/" + url.Substring(applicationRoot.Length); - url = VirtualPathUtility.ToAbsolute(url); - } - } + var url = controllerContext.HttpContext.Request.Url.AbsolutePath; return ComputeCacheKey(_shellSettings.Name, url, () => _workContext.CurrentCulture, _themeManager.GetRequestTheme(controllerContext.RequestContext).Id, parameters); } diff --git a/src/Orchard.Web/Modules/Orchard.OutputCache/Views/Statistics/Index.cshtml b/src/Orchard.Web/Modules/Orchard.OutputCache/Views/Statistics/Index.cshtml index 8c3329281..548d763dc 100644 --- a/src/Orchard.Web/Modules/Orchard.OutputCache/Views/Statistics/Index.cshtml +++ b/src/Orchard.Web/Modules/Orchard.OutputCache/Views/Statistics/Index.cshtml @@ -15,6 +15,7 @@ @T("Url") + @T("Cache Key") @T("Cached On") @T("Cached Until")   @@ -23,6 +24,7 @@ @foreach (var cacheItem in Model.CacheItems) { @cacheItem.Url + @cacheItem.CacheKey @Display.DateTimeRelative(DateTimeUtc: cacheItem.CachedOnUtc) @cacheItem.ValidUntilUtc.ToLocalTime() @Html.ActionLink(T("Evict").Text, "Evict", new { Area = "Orchard.OutputCache", Controller = "Statistics", cacheKey = cacheItem.CacheKey })