Files
dify/web/service
yyh d26fdc60e6 fix: remove staleTime/gcTime overrides from trigger query hooks
Closes #31858

The trigger API hooks (useAllTriggerPlugins, useTriggerProviderInfo,
useTriggerPluginDynamicOptions) were setting staleTime: 0 and gcTime: 0,
which defeated TanStack Query's caching. This caused redundant GET
requests to /workspaces/current/triggers on every panel open/close cycle
in both workflow and chatflow modes. Removing these overrides lets the
hooks use the global default (30 min staleTime), while existing
invalidateQueries calls already cover plugin install/uninstall scenarios.
2026-02-03 15:08:25 +08:00
..
2026-01-28 11:09:34 +08:00
2026-01-14 17:20:49 +08:00
2025-12-23 16:58:55 +08:00
2025-02-17 17:05:13 +08:00
2025-12-23 16:58:55 +08:00
2025-09-18 12:49:10 +08:00