This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Used to stop Donut Caching from executing on the request if the Doc Type Grid Editor is being used in the backoffice | |
/// Put this attribute on the Controller/Method that is causing a problem in the backoffice. | |
/// e.g. [UmbracoDonutOutputCacheAttribute(CacheProfile = "FiveMin")] | |
// public ActionResult Home() | |
/// </summary> | |
public class UmbracoDonutOutputCacheAttribute : DonutOutputCacheAttribute | |
{ | |
public override void OnActionExecuting(ActionExecutingContext filterContext) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Umbraco.Core; | |
using Umbraco.Core.Services; | |
using Umbraco.Web.Mvc; | |
using Umbraco.Web.Routing; | |
namespace Our.Umbraco | |
{ | |
public class MyApplication : ApplicationEventHandler | |
{ | |
protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) |