Skip to content

Commit 940b13a

Browse files
committedJan 18, 2019
2.6: serverCacheKey bail out
1 parent 918ef98 commit 940b13a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎docs/guide/caching.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ The key returned from `serverCacheKey` should contain sufficient information to
7373

7474
Returning a constant will cause the component to always be cached, which is good for purely static components.
7575

76+
::: tip Bailing out from Caching
77+
Since 2.6.0, explicitly returning `false` in `serverCacheKey` will cause the component to bail out of caching and be rendered afresh.
78+
:::
79+
7680
### When to use component caching
7781

7882
If the renderer hits a cache for a component during render, it will directly reuse the cached result for the entire sub tree. This means you should **NOT** cache a component when:

0 commit comments

Comments
 (0)
Please sign in to comment.