Skip to content

Commit

Permalink
docs: close code-group in cache section (#2093)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aterbonus committed Jan 17, 2024
1 parent aff7b5c commit 0551d96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/content/1.guide/5.cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export default defineCachedEventHandler((event) => {
maxAge: 60 * 60 // 1 hour
});
```
::

With this example, the response will be cached for 1 hour and a stale value will be sent to the client while the cache is being updated in the background. If you want to immediately return the updated response set `swr: false`.

Expand Down

0 comments on commit 0551d96

Please sign in to comment.