Product Documentation

Caching HTTP Callout Responses

Apr 03, 2013

For improved performance while using callouts, you can use the integrated caching feature to cache callout responses. The responses are stored in an integrated caching content group named calloutContentGroup for a specified time duration.

Note: To cache callout responses, make sure that the integrated caching feature is enabled.

To set the cache duration by using the command line interface

At the command prompt, type:

set policy httpCallout <name> -cacheForSecs <secs>

Example

> set httpcallout httpcallout1 -cacheForSecs 120

To set the cache duration by using the configuration utility

  1. Navigate to AppExpert > HTTP Callouts.
  2. In the details pane, select the HTTP callout for which you want to set the cache duration and click Open.
  3. In the Configure HTTP Callout dialog box, specify the Cache Expiration Time.
  4. Verify that you have entered the correct time duration, and then click OK.