From 3247b54679b607a43bfe59eb2857e9db4e17e481 Mon Sep 17 00:00:00 2001 From: twlite <46562212+twlite@users.noreply.github.com> Date: Mon, 27 Jan 2025 23:21:24 +0545 Subject: [PATCH] docs: improve caching --- apps/website/docs/guide/11-caching.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/website/docs/guide/11-caching.mdx b/apps/website/docs/guide/11-caching.mdx index 728efb6..7df76ef 100644 --- a/apps/website/docs/guide/11-caching.mdx +++ b/apps/website/docs/guide/11-caching.mdx @@ -223,6 +223,10 @@ async function fetchData() { } ``` +:::tip +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. +::: + ### Using the cache manually ```js