Skip to content

Commit 3247b54

Browse files
committed
docs: improve caching
1 parent d8a75e3 commit 3247b54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/website/docs/guide/11-caching.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ async function fetchData() {
223223
}
224224
```
225225
226+
:::tip
227+
The `'use cache'` directive will only work if you are using the commandkit cli to run your bot. Any function decorated with `'use cache'` will be automatically cached.
228+
:::
229+
226230
### Using the cache manually
227231
228232
```js

0 commit comments

Comments
 (0)