The Cache Scope is a Mule feature that stores and reuses frequently called data to save time and processing load. It first determines if a message's payload is consumable or not; consumable payloads cannot be cached. For non-consumable payloads, it proceeds with caching the data, but consumable payloads are processed without caching. This prevents cached payloads from being read more than once.
2. The Cache Scope is a Mule feature for storing and reusing frequently called data. The Cache
Scope saves on time and processing load.
Cache scope determines whether the messages payload is consumable. A consumable payload can
only be read once before it is lost such as a streaming payload and cannot be cached.
If the message payload is consumable, cache scope always processes the message; nothing is cached
and the caching strategy is abandoned.
If the message payload is not consumable, cache scope continues to the next step in the caching
strategy.