Skip to main content
Sets the cache policy for the composite topic. Cache policies are defined at the model level using the cache_policies parameter.

Syntax

Properties

string
The name of a cache policy defined in the model file. Must reference a policy from the model’s cache_policies configuration.

Behavior

When cache_policy is unset, the composite topic resolves its effective cache policy to the shortest max_cache_age among its sub-topics. This ensures the composite is never served staler than its strictest member.

Examples

Explicit cache policy

Default resolution behavior

If cache_policy is unset, the composite uses the shortest max_cache_age from its component topics: