You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/caching.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,10 @@ The key returned from `serverCacheKey` should contain sufficient information to
73
73
74
74
Returning a constant will cause the component to always be cached, which is good for purely static components.
75
75
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
+
76
80
### When to use component caching
77
81
78
82
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