Caching is not utilized, I have setup cookieCache true, still no cache
In my next.js app using prisma postgres for user management database, session storage and all. How do I cache the data in prisma?
Getting this
GET http://localhost:3000/api/auth/get-session 200 in 3776ms (cache skip)
│ │ Cache skipped reason: (auto no cache)
I have setup cookieCache true, still no cache. Every time refresh It keeps hitting the prisma database
session: {
expiresIn: 60 * 60 * 24 * 7, // 7 days
updateAge: 60 * 60 * 24, // 1 day (every 1 day the session expiration is updated)
cookieCache: {
enabled: true,
maxAge: 5 * 60 // Cache duration in seconds
}
},
0 Replies