diff --git a/frontend/src/lib/components/flows/content/FlowModuleCache.svelte b/frontend/src/lib/components/flows/content/FlowModuleCache.svelte index 8ac578c8b1..8c9ab08182 100644 --- a/frontend/src/lib/components/flows/content/FlowModuleCache.svelte +++ b/frontend/src/lib/components/flows/content/FlowModuleCache.svelte @@ -18,25 +18,32 @@ value instead of recomputing it. - { - if (isCacheEnabled && flowModule.cache_ttl != undefined) { - flowModule.cache_ttl = undefined - } else { - flowModule.cache_ttl = 600 - } - }} - options={{ - right: 'Cache the results for each possible inputs' - }} -/> -
- How long to keep cache valid +{#if flowModule.value.type != 'rawscript'} +

The cache settings need to be set in the referenced script/flow settings directly. Cache for + hub scripts is not available yet.

+{:else} + { + if (isCacheEnabled && flowModule.cache_ttl != undefined) { + flowModule.cache_ttl = undefined + } else { + flowModule.cache_ttl = 600 + } + }} + options={{ + right: 'Cache the results for each possible inputs' + }} + /> +
+ How long to keep cache valid - {#if flowModule.cache_ttl} - - {:else} - - {/if} -
+ {#if flowModule.cache_ttl} + + {:else} + + {/if} +
+{/if}