mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
- Method renamed
- try catch removed
This commit is contained in:
@@ -614,12 +614,7 @@ namespace Orchard.OutputCache.Filters {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//make CacheKey morphable by external modules
|
//make CacheKey morphable by external modules
|
||||||
try {
|
_cachingEvents.KeyGenerated(keyBuilder);
|
||||||
keyBuilder = _cachingEvents.ParticipateInCacheKey(keyBuilder);
|
|
||||||
} catch (UnauthorizedAccessException ex) {
|
|
||||||
throw new UnauthorizedAccessException();
|
|
||||||
} catch { }
|
|
||||||
|
|
||||||
|
|
||||||
return keyBuilder.ToString();
|
return keyBuilder.ToString();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ using System.Web;
|
|||||||
|
|
||||||
namespace Orchard.OutputCache {
|
namespace Orchard.OutputCache {
|
||||||
public interface ICachingEventHandler : IEventHandler {
|
public interface ICachingEventHandler : IEventHandler {
|
||||||
StringBuilder ParticipateInCacheKey(StringBuilder key);
|
void KeyGenerated(StringBuilder key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user