Setting the Cache Update Policy

The cache update policy defines how the consolidated database is updated after calling a mobile business object operation at a finer granularity than the primary read operation.

To maximize Unwired Platform efficiency and performance, set the cache update policy, which determines how create, update, and delete operation results from the Enterprise Information System (EIS) are applied to the consolidated database (CDB).

Note: These terms all represent the same thing: consolidated database, CDB, and cache.
  1. In the Mobile Application Diagram, double-click the operation.
  2. In the Operation Properties dialog, select the Cache Policy tab.
  3. Select the cache update policy:
    Cache Update Policy Description
    Invalidate Invalidates and refreshes the CDB after the client calls the mobile business object (MBO) operation. This is the default cache update policy.
    No invalidate The CDB remains unchanged after the client calls the MBO operation.
    Apply operation result Updates the CDB based on the result set that is returned from the MBO operation.
    Apply operation parameters Updates the CDB based on the operation’s parameters.
    Chained operation Chain an alternate read operation to the MBO operation. The CDB is updated with the results returned by the alternate read operation. If you select this option, a Chained Operation drop-down list appears, which allows you to either choose an existing operation, or create a new one by selecting New. Define the chained operation the same as other operations; set the operation type to "Read."
    Note: Find by must be selected for at least one attribute.

    The alternate read operation is no different from an operation that uses the apply operation result cache update policy. Specifying a different read type operation enables chaining it to the MBO operations to get the desired results.