From 548b5d7d8fd95982cc04adc42272152ec327d1c0 Mon Sep 17 00:00:00 2001 From: HermesSbicego-Laser Date: Fri, 21 Oct 2016 09:37:07 +0200 Subject: [PATCH] - Method renamed - try catch removed --- .../Orchard.OutputCache/Filters/OutputCacheFilter.cs | 7 +------ .../Modules/Orchard.OutputCache/ICachingEventHandler.cs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.OutputCache/Filters/OutputCacheFilter.cs b/src/Orchard.Web/Modules/Orchard.OutputCache/Filters/OutputCacheFilter.cs index b8ddff839..e87eeedc2 100644 --- a/src/Orchard.Web/Modules/Orchard.OutputCache/Filters/OutputCacheFilter.cs +++ b/src/Orchard.Web/Modules/Orchard.OutputCache/Filters/OutputCacheFilter.cs @@ -614,12 +614,7 @@ namespace Orchard.OutputCache.Filters { } //make CacheKey morphable by external modules - try { - keyBuilder = _cachingEvents.ParticipateInCacheKey(keyBuilder); - } catch (UnauthorizedAccessException ex) { - throw new UnauthorizedAccessException(); - } catch { } - + _cachingEvents.KeyGenerated(keyBuilder); return keyBuilder.ToString(); } diff --git a/src/Orchard.Web/Modules/Orchard.OutputCache/ICachingEventHandler.cs b/src/Orchard.Web/Modules/Orchard.OutputCache/ICachingEventHandler.cs index 6e9aebf5a..a2dbc640e 100644 --- a/src/Orchard.Web/Modules/Orchard.OutputCache/ICachingEventHandler.cs +++ b/src/Orchard.Web/Modules/Orchard.OutputCache/ICachingEventHandler.cs @@ -7,6 +7,6 @@ using System.Web; namespace Orchard.OutputCache { public interface ICachingEventHandler : IEventHandler { - StringBuilder ParticipateInCacheKey(StringBuilder key); + void KeyGenerated(StringBuilder key); } } \ No newline at end of file