using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Umbraco.Web { /// /// Provides extension methods for . /// public static class UmbracoContextExtensions { /// /// Informs the context that content has changed. /// /// The context. /// /// The contextual caches may, although that is not mandatory, provide an immutable snapshot of /// the content over the duration of the context. If you make changes to the content and do want to have /// the caches update their snapshot, you have to explicitely ask them to do so by calling ContentHasChanged. /// The context informs the contextual caches that content has changed. /// public static void ContentHasChanged(this UmbracoContext context) { context.ContentCache.ContentHasChanged(); context.MediaCache.ContentHasChanged(); } } }