Class ContentCacheRefresher.JsonPayload
Represents a JSON-serializable payload containing information about a content or tree change event, including identifiers, change types, and culture-specific publishing details.
Inheritance
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public class ContentCacheRefresher.JsonPayload
Constructors
View SourceJsonPayload()
Declaration
public JsonPayload()
Properties
View SourceBlueprint
Gets a value indicating whether the content represents a document blueprint.
Declaration
public bool Blueprint { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
ChangeTypes
Gets the types of changes that have occurred in the tree.
Declaration
public TreeChangeTypes ChangeTypes { get; init; }
Property Value
| Type | Description |
|---|---|
| TreeChangeTypes |
Id
Gets the unique integer identifier for the entity.
Declaration
public int Id { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Key
Gets the unique GUID key associated with the entity, or null if no key is assigned.
Declaration
public Guid? Key { get; init; }
Property Value
| Type | Description |
|---|---|
| Guid? |
Remarks
Required when ChangeTypes includes Remove: the refresher clears the id/key map for a removed entity before the published-cache refresh runs, and the removed entity can no longer be looked up in the database, so the key cannot be resolved from Id alone.
PublishedCultures
Gets the collection of culture codes in which the content is published.
Declaration
public string[]? PublishedCultures { get; init; }
Property Value
| Type | Description |
|---|---|
| string[] |
UnpublishedCultures
Gets the collection of culture codes for which the content has been unpublished.
Declaration
public string[]? UnpublishedCultures { get; init; }
Property Value
| Type | Description |
|---|---|
| string[] |