Skip to main content
Defines cache policies for the model. Each policy must have a max_cache_age parameter that defines the time limit for the policy. Omni defaults to the following cache policy and filter suggestion retention period: Note: This parameter allows you to set defaults for the model, but caching policies can also be set at the dashboard level. Editing cache policies in a workbook model or query model effectively applies the policy to the associated dashboard. Refer to the Topics documentation for information about setting topic-level cache policies.

Syntax

cache_policies:
  <cache_policy_name>:
     max_cache_age: <0_seconds_to_30_days>
     filter_suggestions_must_obey_policy: true/false
cache_policy_name
string
required
A name that uniquely identifies the cache policy.

Examples

Retain filter suggestions for 30 days
cache_policies:
  dont_cache_at_all:
    max_cache_age: 0 seconds
    filter_suggestions_must_obey_policy: false       # Retain filter suggestions for 30 days
Obey cache policy & retain for 24 hours
cache_policies:
  cache_for_a_day:
    max_cache_age: 24 hours
    filter_suggestions_must_obey_policy: true        # Obey cache policy & retain for 24 hours