---
schema_version: "1"
id: 7d96ed9aece4c3550b8d23806fa36fb04a79243c89a5fc58dd44ac4386f3c4cb
title: Cache Block
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_cache_block.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_cache_block.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fcd4532cbe52108d841788e2b26778343861904d31a058256d99eda4b0967498
description: Using a cache to store frequently accessed, infrequently updated data saves round trips to the database and improves performance. Use Cache Blocks if some parts of the Integration Procedure update data and therefore shouldn't be cached, or if different cached data should expire at different times.
products:
  - Omnistudio
release: "264"
---
# Cache Block

Using a cache to store frequently accessed, infrequently updated data saves round trips to the database and improves performance. Use Cache Blocks if some parts of the Integration Procedure update data and therefore shouldn't be cached, or if different cached data should expire at different times.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d84297e34">
            <p style="margin-bottom:0;">Property</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d84297e40">
            <p style="margin-bottom:0;">Description</p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e34 ">
            <p style="margin-bottom:0;">Salesforce Platform Cache Type</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e40 ">
            <p>Specifies the cache type:</p>
            <ul>
              <li>
                <p><strong class="uicontrol">Session Cache</strong> — For data related to users and
                  their login sessions</p>
              </li>

              <li>
                <p><strong class="uicontrol">Org Cache</strong> — For all other types of data</p>
              </li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e34 ">
            <p style="margin-bottom:0;">Time To Live In Minutes</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e40 ">
            <p>Determines how long data remains in the cache. The minimum value is 5.
              Default and maximum values depend on the cache type:</p>
            <ul>
              <li>
                <p><strong class="uicontrol">Session Cache</strong> — The default value is 5. The
                  maximum value is 480, equivalent to 8 hours. However, the cache is
                  cleared when the user's session expires.</p>
              </li>

              <li>
                <p><strong class="uicontrol">Org Cache</strong> — The default value is 5. The maximum
                  value is 2880, equivalent to 48 hours.</p>
              </li>

            </ul>
            <p style="margin-bottom:0;">Top-level caching overrides Cache Block caching for the duration of the
              top-level <strong class="uicontrol">Time To Live In Minutes</strong> value.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e34 ">
            <p style="margin-bottom:0;">Cache Keys</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e40 ">
            <p style="margin-bottom:0;">Configurable Key/Value pairs to be stored in the cache. Enter a Key and set
              the Value to the response of an Action within the Cache Block. The value can
              use merge field syntax, percentage signs on either side of the node name, to
              access that response. Cache keys are available, or scoped, only within the
              Cache Block.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e34 ">
            <p style="margin-bottom:0;">Cache Block Output</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e40 ">
            <p style="margin-bottom:0;">Configurable Key/Value pairs to be available to subsequent Integration
              Procedure steps. Enter a Key and set the Value to the response of an Action
              within the Cache Block. The value can use merge field syntax, percentage
              signs on either side of the node name, to access that response.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e34 ">
            <p style="margin-bottom:0;">Refresh Cache Conditional Formula</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e40 ">
            <p style="margin-bottom:0;">If the formula evaluates to true, forces data to be saved to the cache.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e34 ">
            <p style="margin-bottom:0;">Ignore Cache Conditional Formula</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e40 ">
            <p style="margin-bottom:0;">If the formula evaluates to true, neither clears nor saves data to the
              cache.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e34 ">
            <p style="margin-bottom:0;">Add to Cache Conditional Formula</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e40 ">
            <p style="margin-bottom:0;">If the formula evaluates to true, saves data to the cache. If false, does
              not cache data.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e34 ">
            <p style="margin-bottom:0;">Fail On Step Error</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d84297e40 ">
            <p style="margin-bottom:0;">If this box is checked in a step within the Cache Block and that step fails,
              no data is cached.</p>
          </td>

        </tr>
      </tbody>
    </table>