IBM Support

Usage of modifyCache API

Question & Answer


Question

Usage of modifyCache API

Answer

The modifyCache API modifies the cache attributes of a cached object.

This API can be used to clear database cache for all the servers, all the data for application server, specific table data for application server and specific agent server depending on the input passed .

Sample XML:
==========
1. Clear cache for all servers for a specific table
<CachedGroups>
<CachedGroup Name="Database">
<CachedObject Action="CLEAR" Class="com.yantra.shared.dbclasses.YPM_Pricelist_HeaderDBCacheHome" />
</CachedGroup>
</CachedGroups>

2. Clear cache for all the servers
<CachedGroups>
<CachedGroup Action="Clear" Name="Database"/>
</CachedGroups>

3. Clear cache for the application server
<CachedGroups ServerId="AdminServer_0">
<CachedGroup Action="Clear" Name="Database"/>
</CachedGroups>

4. Clear cache for the application server for the specific table
<CachedGroups ServerId="AdminServer_1">
<CachedGroup Name="Database">
<CachedObject Action="Clear" Class="com.yantra.shared.dbclasses.YFS_ActionDBCacheHome"/>
</CachedGroup>
</CachedGroups>

5. Clear cache for the agent server
<CachedGroups ServerId="Schedule_0">
<CachedGroup Action="Clear" Name="Database"/>
</CachedGroups>

*ServerId is the application server id or agent server id with which server(application or agent or integration) registers itself in the YFS_HEARTBEAT table.

Following cached group name are also there;

1. IntegrationAdapterGroup
2. Template File Status.

modifyCache API is however most commonly used to clear Database cache.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

FAQ4632

Document Information

Modified date:
16 June 2018

UID

swg21519871