protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { base.ApplicationStarted(umbracoApplication, applicationContext); if (!UrlTrackerSettings.IsDisabled && !UrlTrackerSettings.IsTrackingDisabled) { UrlTrackerRepository.ReloadForcedRedirectsCache(); ContentService.Moving += ContentService_Moving; ContentService.Publishing += ContentService_Publishing; ContentService.Deleting += ContentService_Deleting; content.BeforeClearDocumentCache += content_BeforeClearDocumentCache; DomainCacheRefresher.CacheUpdated += (s, e) => UmbracoHelper.ClearDomains(); } }
void Domain_AfterDelete(Domain sender, umbraco.cms.businesslogic.DeleteEventArgs e) { UmbracoHelper.ClearDomains(); }
void Domain_New(Domain sender, NewEventArgs e) { UmbracoHelper.ClearDomains(); }
void Domain_AfterSave(Domain sender, SaveEventArgs e) { UmbracoHelper.ClearDomains(); }
void Domain_AfterDelete(Domain sender, DeleteEventArgs e) { UmbracoHelper.ClearDomains(); }