Interface IWebsiteOutputCacheEvictionProvider
Provides additional cache tags to evict when content changes.
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public interface IWebsiteOutputCacheEvictionProvider
Remarks
Multiple implementations can be registered. The eviction handler iterates all providers to collect additional tags to evict beyond the built-in content key tag.
Works as a pair with IWebsiteOutputCacheTagProvider: the tag provider adds custom tags when caching a response, and this provider maps content changes back to those tags at eviction time.
Methods
View SourceGetAdditionalEvictionTagsAsync(OutputCacheContentChangedContext, CancellationToken)
Returns additional cache tags to evict when the specified content changes.
Declaration
Task<IEnumerable<string>> GetAdditionalEvictionTagsAsync(OutputCacheContentChangedContext context, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| OutputCacheContentChangedContext | context | Details of the content change. |
| CancellationToken | cancellationToken | A cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<string>> | Additional cache tags to evict. |