Cache Block

Using a cache to store frequently accessed, infrequently updated data saves round trips to the database and improves performance. Use Cache Blocks if some parts of the Integration Procedure update data and therefore shouldn't be cached, or if different cached data should expire at different times.

Property

Description

Salesforce Platform Cache Type

Specifies the cache type:

  • Session Cache — For data related to users and their login sessions

  • Org Cache — For all other types of data

Time To Live In Minutes

Determines how long data remains in the cache. The minimum value is 5. Default and maximum values depend on the cache type:

  • Session Cache — The default value is 5. The maximum value is 480, equivalent to 8 hours. However, the cache is cleared when the user's session expires.

  • Org Cache — The default value is 5. The maximum value is 2880, equivalent to 48 hours.

Top-level caching overrides Cache Block caching for the duration of the top-level Time To Live In Minutes value.

Cache Keys

Configurable Key/Value pairs to be stored in the cache. Enter a Key and set the Value to the response of an Action within the Cache Block. The value can use merge field syntax, percentage signs on either side of the node name, to access that response. Cache keys are available, or scoped, only within the Cache Block.

Cache Block Output

Configurable Key/Value pairs to be available to subsequent Integration Procedure steps. Enter a Key and set the Value to the response of an Action within the Cache Block. The value can use merge field syntax, percentage signs on either side of the node name, to access that response.

Refresh Cache Conditional Formula

If the formula evaluates to true, forces data to be saved to the cache.

Ignore Cache Conditional Formula

If the formula evaluates to true, neither clears nor saves data to the cache.

Add to Cache Conditional Formula

If the formula evaluates to true, saves data to the cache. If false, does not cache data.

Fail On Step Error

If this box is checked in a step within the Cache Block and that step fails, no data is cached.