Search Results for

    Show / Hide Table of Contents
    View Source

    Class ElementContainerDeletedDistributedCacheNotificationHandler

    Invalidates element caches when an element container (folder) is deleted, so that its key→id mapping is evicted from IIdKeyMap on every server.

    Inheritance
    object
    DistributedCacheNotificationHandlerBase<EntityContainer, EntityContainerDeletedNotification>
    DeletedDistributedCacheNotificationHandlerBase<EntityContainer, EntityContainerDeletedNotification, EntityContainer>
    DeletedDistributedCacheNotificationHandlerBase<EntityContainer, EntityContainerDeletedNotification>
    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class ElementContainerDeletedDistributedCacheNotificationHandler : DeletedDistributedCacheNotificationHandlerBase<EntityContainer, EntityContainerDeletedNotification>, IDistributedCacheNotificationHandler<EntityContainerDeletedNotification>, INotificationHandler<EntityContainerDeletedNotification>, IDistributedCacheNotificationHandler, INotificationHandler
    Remarks

    Element container deletions only publish EntityContainerDeletedNotification and an ElementTreeChangeNotification for the contained elements - never for the container node itself, so without this handler the container's stale id/key mapping survives until the next app restart (see #23072).

    Constructors

    View Source

    ElementContainerDeletedDistributedCacheNotificationHandler(DistributedCache)

    Initializes a new instance of the ElementContainerDeletedDistributedCacheNotificationHandler class.

    Declaration
    public ElementContainerDeletedDistributedCacheNotificationHandler(DistributedCache distributedCache)
    Parameters
    Type Name Description
    DistributedCache distributedCache

    The distributed cache.

    Methods

    View Source

    Handle(IEnumerable<EntityContainer>, IDictionary<string, object?>)

    Handles the specified entities.

    Declaration
    protected override void Handle(IEnumerable<EntityContainer> entities, IDictionary<string, object?> state)
    Parameters
    Type Name Description
    IEnumerable<EntityContainer> entities

    The entities.

    IDictionary<string, object> state

    The notification state.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX