adjust email/pass addition flow, blog ttl extended

This commit is contained in:
Michael Freno
2026-01-07 21:21:27 -05:00
parent ca28237d13
commit 8f241ce611
6 changed files with 92 additions and 23 deletions

View File

@@ -13,11 +13,11 @@ const getPosts = query(async () => {
"use server";
const { getUserState } = await import("~/lib/auth-query");
const { ConnectionFactory } = await import("~/server/utils");
const { withCache } = await import("~/server/cache");
const { withCacheAndStale } = await import("~/server/cache");
const userState = await getUserState();
const privilegeLevel = userState.privilegeLevel;
return withCache(
return withCacheAndStale(
`posts-${privilegeLevel}`,
CACHE_CONFIG.BLOG_POSTS_LIST_CACHE_TTL_MS,
async () => {