mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
- Method renamed
- try catch removed
This commit is contained in:
parent
794b9b0252
commit
548b5d7d8f
@ -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();
|
||||
}
|
||||
|
@ -7,6 +7,6 @@ using System.Web;
|
||||
|
||||
namespace Orchard.OutputCache {
|
||||
public interface ICachingEventHandler : IEventHandler {
|
||||
StringBuilder ParticipateInCacheKey(StringBuilder key);
|
||||
void KeyGenerated(StringBuilder key);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user