Unify Logo Footer.svg
Unify Automations
Logo
Caches by UnifyApps

Caches by UnifyApps

Logo

3 mins READ

Caches by UnifyApps provides cache management capabilities that complement the node-level caching available on individual automation steps.

Overview

Caches by UnifyApps provides cache management capabilities that complement the node-level caching available on individual automation steps. While node-level caching is configured directly on a step, the Caches node gives explicit programmatic control — allowing automations to update cached values mid-run or evict stale entries to force fresh data retrieval on the next execution.

cache-1 1.png
cache-1 1.png

Update Node Cache

Writes or overwrites a cached value for a specific workflow node, allowing an automation to pre-populate or refresh cache entries programmatically rather than waiting for the next natural execution cycle.

Key Input Fields:

  • Select Automation — The automation that owns the cached node

  • Select Workflow Node — The specific node within that automation whose cache to update

  • Cache Key — The key identifying which cache entry to write. Must match the Cache Key configured on the target node's caching settings.

  • Cache TTL — Time-to-live for the new cache entry, in seconds. Overrides the TTL configured on the target node for this specific write.

Output: Confirmation of cache write, updated entry metadata.

Cache-2 1.png
Cache-2 1.png

Evict Node Cache

Removes one or all cache entries for a specific workflow node, ensuring the next execution of that node fetches fresh data. Useful for invalidation after data changes.

Cache-3 1.png
Cache-3 1.png

Key Input Fields:

  • Select Automation — The automation that owns the cached node

  • Select Workflow Node (optional) — The specific node to evict cache from. When omitted, evicts all cached entries for the automation.

  • Cache Key (optional) — The specific cache key to evict. When omitted, all keys for the selected node are evicted.

Output: Eviction confirmation, number of entries removed.

Best Practices

  • Invalidate on write — When an automation updates a record that another automation caches, trigger an Evict Node Cache action immediately after the write to prevent stale reads.

  • Use consistent cache keys — Ensure the Cache Key used in the Caches node exactly matches the key pattern used in the target node's cache configuration. Mismatched keys result in cache misses rather than updates or evictions.

  • Set appropriate TTLs — Shorter TTLs reduce the risk of stale data but increase compute cost. Match TTL to the natural refresh frequency of the underlying data.

  • Evict selectively — Prefer key-specific eviction over full-automation eviction to avoid unnecessary cache rebuilding across unrelated nodes.

Note: The Caches node manages caches for other nodes; it does not cache its own actions. Cache Key must match the target node's cache key pattern exactly — the match is case-sensitive.

Notes

Keep the following in mind when using Caches by UnifyApps:

  • Evict the cache before running tests that require fresh data; a cached result from a previous run may mask errors in the live system.

  • Update Node Cache is most useful when a node’s output changes infrequently; avoid caching data that changes faster than the cache TTL.

  • Cache keys are node-specific by default; two nodes querying the same resource with the same inputs will not share a cache entry unless configured to do so.

  • Set TTL values based on the actual freshness requirements of the cached data; too-short TTLs add overhead, while too-long TTLs return stale data.

  • Combine cache eviction with a webhook trigger to invalidate the cache immediately when the underlying source data changes.