Interface IWebsiteOutputCacheTagProvider
Provides additional cache tags when caching a website content page.
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public interface IWebsiteOutputCacheTagProvider
Remarks
Multiple implementations can be registered; the output cache policy iterates all of them to collect tags at cache-write time. Works as a pair with IWebsiteOutputCacheEvictionProvider: the tag provider adds custom tags when caching, and the eviction provider maps content changes back to those tags at eviction time.
Methods
View SourceGetTags(IPublishedContent)
Returns additional cache tags for the given published content.
Declaration
IEnumerable<string> GetTags(IPublishedContent content)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedContent | content | The published content being cached. |
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | Additional cache tags to associate with the cached response. |