Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions 10/umbraco-cms/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,19 +293,13 @@
* [PDF indexes and multisearchers](reference/searching/examine/pdfindex-multisearcher.md)
* [quick-start](reference/searching/examine/quick-start.md)
* [Using Notifications](reference/notifications/README.md)
* [CacheRefresher Notifications](reference/notifications/cacherefresher-notifications.md)
* [ContentService Notifications](reference/notifications/contentservice-notifications.md)
* [ContentTypeService Notifications](reference/notifications/contentypeservice-notifications.md)
* [Notification Handler](reference/notifications/notification-handler.md)
* [CacheRefresher Notifications Example](reference/notifications/cacherefresher-notifications.md)
* [ContentService Notifications Example](reference/notifications/contentservice-notifications.md)
* [Creating And Publishing Notifications](reference/notifications/creating-and-publishing-notifications.md)
* [DataTypeService Notifications](reference/notifications/datatypeservice-notifications.md)
* [Determining if an entity is new](reference/notifications/determining-new-entity.md)
* [FileService Notifications](reference/notifications/fileservice-notifications.md)
* [LocalizationService Events](reference/notifications/localizationservice-notifications.md)
* [MediaService Notifications](reference/notifications/mediaservice-notifications.md)
* [MediaTypeService Notifications](reference/notifications/mediatypeservice-notifications.md)
* [MemberService Notifications](reference/notifications/memberservice-notifications.md)
* [MemberTypeService Notifications](reference/notifications/membertypeservice-notifications.md)
* [RelationService Notifications](reference/notifications/relationservice-notifications.md)
* [MediaService Notifications Example](reference/notifications/mediaservice-notifications.md)
* [MemberService Notifications Example](reference/notifications/memberservice-notifications.md)
* [Sending Allowed Children Notification](reference/notifications/sendingallowedchildrennotifications.md)
* [Umbraco Application Lifetime Notifications](reference/notifications/umbracoapplicationlifetime-notifications.md)
* [EditorModel Notifications](reference/notifications/editormodel-notifications/README.md)
Expand Down
466 changes: 348 additions & 118 deletions 10/umbraco-cms/reference/notifications/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
description: Example of how to use a CacheRefresher Notification
---

# Cache Refresher Notifications

Before starting with cache refresher notifications it's a good idea to ensure you need to use them. If you want to react to changes in content, for instance, there's no real reason to use these notifications. This is due to the [content service notifications](contentservice-notifications.md) being easier to work with. If you need to react to changes in the cache, then these are the notifications for you.
Expand Down Expand Up @@ -64,7 +68,7 @@ public enum TreeChangeTypes : byte

```

An example of working with the `ContentCacheNotification` can be seen here:
An example of working with the `ContentCacheNotification` can be seen here:

```C#
using Umbraco.Cms.Core.Cache;
Expand Down Expand Up @@ -105,72 +109,3 @@ public class ContentCacheRefresherExample : INotificationHandler<ContentCacheRef
}

```

<table>
<tr>
<th>Notification</th>
<th>Members</th>
<th>Description</th>
</tr>

<tr>
<td>ContentCacheRefresherNotification</td>
<td>
<ul>
<li>object MessageObject</li>
<li>MessageType MessageType</li>
</ul>
</td>
<td>
Published when the content cache has been updated.<br />
MessageObject: The refresher payload.<br />
MessageType: The type of cache refresher message.<br />
</td>
</tr>

<tr>
<td>MediaCacheRefresherNotification</td>
<td>
<ul>
<li>object MessageObject</li>
<li>MessageType MessageType</li>
</ul>
</td>
<td>
Published when the media cache has been updated.<br />
MessageObject: The refresher payload.<br />
MessageType: The type of cache refresher message.<br />
</td>
</tr>

<tr>
<td>MemberCacheRefresherNotification</td>
<td>
<ul>
<li>object MessageObject</li>
<li>MessageType MessageType</li>
</ul>
</td>
<td>
Published when the member cache has been updated.<br />
MessageObject: The refresher payload.<br />
MessageType: The type of cache refresher message.<br />
</td>
</tr>

<tr>
<td>UserCacheRefresherNotification</td>
<td>
<ul>
<li>object MessageObject</li>
<li>MessageType MessageType</li>
</ul>
</td>
<td>
Published when the user cache has been updated.<br />
MessageObject: The refresher payload.<br />
MessageType: The type of cache refresher message.<br />
</td>
</tr>

</table>
Loading