mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 12:27:44 +00:00
docs: fix typo (#4655)
This commit is contained in:
@@ -11,7 +11,7 @@ Caching is a powerful technique that can significantly improve the performance o
|
||||
|
||||
### Cookie Cache
|
||||
|
||||
Calling your database every time `useSession` or `getSession` invoked isn’t ideal, especially if sessions don’t change frequently. Cookie caching handles this by storing session data in a short-lived, signed cookie similar to how JWT access tokens are used with refresh tokens.
|
||||
Calling your database every time `useSession` or `getSession` is invoked isn’t ideal, especially if sessions don’t change frequently. Cookie caching handles this by storing session data in a short-lived, signed cookie similar to how JWT access tokens are used with refresh tokens.
|
||||
|
||||
To turn on cookie caching, just set `session.cookieCache` in your auth config:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user