Skip to content

Caching

Caching is used to cache the results of a script, flow, flow step or app inline script for a specified number of seconds, thereby reducing the need for redundant computations when re-running the same step with identical input.

When you configure caching, Orvanta stores the result in a cache for the duration you specify. If the same runnable is re-triggered with the same input within this duration, Orvanta instantly retrieves the cached result instead of re-computing it.

This feature can significantly improve the performance of your scripts and flows, especially for steps that are computationally demanding or dependent on external resources, such as APIs or databases.

Caching a script means caching the results of that script for a certain duration. If the script is triggered with the same inputs during the given duration, it returns the cached result.

You can enable caching for a script directly in the script Settings:

  1. Settings: from the script editor, pick the “Settings” menu and scroll to “Cache”.
  2. Enable caching: toggle on “Cache the results for each possible inputs” and specify the desired duration for caching results (in seconds).

For example, if the result of the script is cached for 180 seconds (3 minutes) and the script is re-triggered with the same input within this period, Orvanta immediately returns the cached result.

Caching a flow means caching the results of that flow for a certain duration. If the flow is triggered with the same flow inputs during the given duration, it returns the cached result.

You can enable caching for a flow directly in the flow settings:

  1. Settings: from the flow editor, go to the “Settings” menu and pick the Cache tab.
  2. Enable caching: toggle on “Cache the results for each possible inputs” and specify the desired duration for caching results (in seconds).

For example, with a 60-second cache, if the flow is re-triggered with the same input within this period, Orvanta immediately returns the cached result.

Caching a flow step means caching the results of that step for a certain duration. If the step is triggered with the same inputs during the given duration, it returns the cached result.

You can enable caching for a step directly in the step configuration:

  1. Select a step: from the flow editor, select the step for which you want to cache the results.
  2. Enable caching: navigate to the Advanced menu and select Cache. Toggle it on and specify the desired duration for caching results (in seconds).

For example, with an 86400-second (1 day) cache, if the step is re-triggered with the same input within this period, Orvanta immediately returns the cached result.

Step mocking / pin result allows faster iteration. When a step is mocked, it immediately returns the mocked value without performing any computation.

Caching an app inline script means caching the results of that script for a certain duration. If the script is triggered with the same inputs during the given duration, it returns the cached result.

You can enable caching for an app inline script directly in its editor settings:

  1. Settings: from the code editor, go to the top bar and pick the Cache tab.
  2. Enable caching: toggle on “Cache the results for each possible inputs” and specify the desired duration for caching results (in seconds).

For example, with a 5-minute cache, if the inline script is re-triggered with the same input within this period, Orvanta immediately returns the cached result.