Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When a message enters a message flow, the Cache mediator checks whether the incoming message is similar to a previous message that was received within a specified period of time. This is done by evaluating the hash value of incoming messages. If a similar message was identified before, the Cache mediator executes the onCacheHit sequence (if specified), fetches the cached response, and prepares the ESB profile to send the response. The onCacheHit sequence can send back the response message using the Respond Mediator . If the onCacheHit sequence is not specified, the cached response is sent back to the requester and the message is not passed on. If a similar message has not been seen before, then the message is passed on.

...

Invalidating cached responses remotely

You can invalidate all cached response remotely by using any JMX monitoring tool such as Jconsole via the exposed MBeans. You can use the invalidateTheWholeCache()operation of the org.wso2.carbon.mediatio n MBean for this as shown below.