Skip to content

Commit c315ff6

Browse files
committed
Handled issues raised in review.
1 parent c8e41bc commit c315ff6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

13/umbraco-cms/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@
368368
* [Cache & Distributed Cache](reference/cache/README.md)
369369
* [Accessing the cache](reference/cache/application-cache.md)
370370
* [ICacheRefresher](reference/cache/icacherefresher.md)
371+
* [IMemberPartialViewCacheInvalidator](reference/cache/imemberpartialviewcacheinvalidator.md)
371372
* [IServerMessenger](reference/cache/iservermessenger.md)
372373
* [Getting/Adding/Updating/Inserting Into Cache](reference/cache/updating-cache.md)
373374
* [Examples](reference/cache/examples/README.md)

13/umbraco-cms/reference/cache/imemberpartialviewcacheinvalidator.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ This interface is used to isolate the logic that invalidates parts of the partia
88

99
## Why do we need to partially invalidate the partial view cache?
1010

11-
Razor templates showing data retrieved from a member object can be cached as partial views via:
12-
11+
Razor templates may show data that is retrieved from a member object. Those templates might be cached by using the partial caching mechanism (for example, `@await Html.CachedPartialAsync("member",Model,TimeSpan.FromDays(1), cacheByMember:true)`). When a member is updated, these cached partials must be invalidated to ensure updated data is shown.
1312

1413
## Where is it used?
1514

1615
This interface is called from the member cache refresher (`MemberCacheRefresher`), which is invoked every time a member is updated.
1716

1817
## Details of the default implementation
1918

20-
Razor template partials are cached through a call to `Html.CachedPartialAsync` with `cacheByMember` set to `true`. This will append the ID of the currently logged-in member with a marker to the partial view cache key. For example, `-m1015-`.
19+
Razor template partials are cached through a call to `Html.CachedPartialAsync` with `cacheByMember` set to `true`. This will append the ID of the currently logged-in member with a marker to the partial view cache key. For example, `-m1015-`.
2120

2221
When the `ClearPartialViewCacheItems` method is called it will clear all cache items that match the marker for the updated members.
2322

16/umbraco-cms/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@
385385
* [Cache Seeding](reference/cache/cache-seeding.md)
386386
* [Accessing the cache](reference/cache/application-cache.md)
387387
* [ICacheRefresher](reference/cache/icacherefresher.md)
388+
* [IMemberPartialViewCacheInvalidator](reference/cache/imemberpartialviewcacheinvalidator.md)
388389
* [IServerMessenger](reference/cache/iservermessenger.md)
389390
* [Getting/Adding/Updating/Inserting Into Cache](reference/cache/updating-cache.md)
390391
* [Examples](reference/cache/examples/README.md)

0 commit comments

Comments
 (0)