Skip to content

Commit 4a948d2

Browse files
authored
Update 16/umbraco-cms/reference/cache/imemberpartialviewcacheinvalidator.md
1 parent 216b0b4 commit 4a948d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This interface is called from the MemberCacheRefresher which is called every tim
1818

1919
When a razor template partial is cached through `Html.CachedPartialAsync` with `cacheByMember` set to `true`, the extension method modifies the cache key. It appends the member ID of the currently logged-in member and a marker (for example, `-m1015-`) to the partial view cache key.
2020
When the `ClearPartialViewCacheItems` method is called it will clear all PartialView cacheItems that have the memberId marker for all passed in members.
21-
Since it is possible to call the `Html.CachedPartialAsync` with `cacheByMember` set to `true` while there is no member logged in, it will also clear all cache items with an empty member marker (i.e. `-m-`)
21+
If no member is logged in during caching, items with an empty member marker (for example, `-m-`) are also cleared.
2222

2323
## Customizing the implementation
2424

0 commit comments

Comments
 (0)