Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(web): use default profile query cache (#36832)

yyh91ac4659829d
diff --git a/web/features/account-profile/client.ts b/web/features/account-profile/client.ts
index 636d3f8450b..128cd5b20e7 100644
--- a/web/features/account-profile/client.ts
+++ b/web/features/account-profile/client.ts
@@ -35,7 +35,5 @@ export const userProfileQueryOptions = () =>
},
}
},
- staleTime: 0,
- gcTime: 0,
retry: (failureCount, error) => !isLegacyBase401(error) && failureCount < 3,
})
diff --git a/web/features/account-profile/server.ts b/web/features/account-profile/server.ts
index 8885f5f15fa..ddd25246efa 100644
--- a/web/features/account-profile/server.ts
+++ b/web/features/account-profile/server.ts
@@ -75,7 +75,5 @@ export const serverUserProfileQueryOptions = () =>
},
}
},
- staleTime: 0,
- gcTime: 0,
retry: false,
})