Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save casper-rasmussen/255afd9c4d735ea90524 to your computer and use it in GitHub Desktop.
Save casper-rasmussen/255afd9c4d735ea90524 to your computer and use it in GitHub Desktop.
public class ContentDonutOutputCacheAttribute : DonutOutputCacheAttribute
{
public ContentDonutOutputCacheAttribute()
: base(new KeyGenerator(new EPiServerAwareKeyBuilder()), new OutputCacheManager(OutputCache.Instance, new EPiServerAwareKeyBuilder()), (IDonutHoleFiller)new DonutHoleFiller((IActionSettingsSerialiser)new EncryptingActionSettingsSerialiser((IActionSettingsSerialiser)new ActionSettingsSerialiser(), (IEncryptor)new Encryptor())), (ICacheSettingsManager)new CacheSettingsManager(), (ICacheHeadersHelper)new CacheHeadersHelper())
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment