Search Results for

    Show / Hide Table of Contents
    View Source

    Class MemberPartialViewCacheInvalidator

    Implementation of that only remove cached partial views that were cached for the specified member(s).

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.Website.Cache.PartialViewCacheInvalidators
    Assembly: Umbraco.Web.Website.dll
    Syntax
    public class MemberPartialViewCacheInvalidator : IMemberPartialViewCacheInvalidator

    Constructors

    View Source

    MemberPartialViewCacheInvalidator(AppCaches)

    Initializes a new instance of the MemberPartialViewCacheInvalidator class.

    Declaration
    public MemberPartialViewCacheInvalidator(AppCaches appCaches)
    Parameters
    Type Name Description
    AppCaches appCaches

    Methods

    View Source

    ClearPartialViewCacheItems(IEnumerable<Int32>)

    Declaration
    public void ClearPartialViewCacheItems(IEnumerable<int> memberIds)
    Parameters
    Type Name Description
    IEnumerable<System.Int32> memberIds
    Remarks

    Partial view cache keys follow the following format: [] is optional or only added if the information is available {} is a parameter "Umbraco.Web.PartialViewCacheKey{partialViewName}-[{currentThreadCultureName}-][m{memberId}-][c{contextualKey}-]" See CachedPartialAsync(IHtmlHelper, String, Object, TimeSpan, Boolean, Boolean, Nullable<ViewDataDictionary>, Nullable<Func<Object, Nullable<ViewDataDictionary>, String>>) for more information.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MemberPartialViewCacheInvalidator(AppCaches)
    • Methods
      • ClearPartialViewCacheItems(IEnumerable<Int32>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX