mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-13 18:52:14 +00:00
turn of caching
This commit is contained in:
@@ -26,7 +26,6 @@ import {
|
|||||||
SearchQuery,
|
SearchQuery,
|
||||||
SearchQuerySchema,
|
SearchQuerySchema,
|
||||||
} from "@zitadel/proto/zitadel/user/v2/query_pb";
|
} from "@zitadel/proto/zitadel/user/v2/query_pb";
|
||||||
import { unstable_cache } from "next/cache";
|
|
||||||
import { PROVIDER_MAPPING } from "./idp";
|
import { PROVIDER_MAPPING } from "./idp";
|
||||||
|
|
||||||
const SESSION_LIFETIME_S = 3600;
|
const SESSION_LIFETIME_S = 3600;
|
||||||
@@ -48,15 +47,18 @@ export const orgService = createOrganizationServiceClient(transport);
|
|||||||
export const settingsService = createSettingsServiceClient(transport);
|
export const settingsService = createSettingsServiceClient(transport);
|
||||||
|
|
||||||
export async function getBrandingSettings(organization?: string) {
|
export async function getBrandingSettings(organization?: string) {
|
||||||
return unstable_cache(
|
return await settingsService
|
||||||
async () => {
|
.getBrandingSettings({ ctx: makeReqCtx(organization) }, {})
|
||||||
return await settingsService
|
.then((resp) => resp.settings);
|
||||||
.getBrandingSettings({ ctx: makeReqCtx(organization) }, {})
|
// return unstable_cache(
|
||||||
.then((resp) => resp.settings);
|
// async () => {
|
||||||
},
|
// return await settingsService
|
||||||
["branding"],
|
// .getBrandingSettings({ ctx: makeReqCtx(organization) }, {})
|
||||||
{ revalidate: 3600, tags: ["branding"] },
|
// .then((resp) => resp.settings);
|
||||||
)();
|
// },
|
||||||
|
// ["branding"],
|
||||||
|
// { revalidate: 3600, tags: ["branding"] },
|
||||||
|
// )();
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getLoginSettings(orgId?: string) {
|
export async function getLoginSettings(orgId?: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user