Troubleshooting: Business object changes are not reflected in the Management Center
Enabling dynamic caching on the WebSphere Commerce Server might cause some unexpected behavior when you update
objects with the Data Load utility.
Problem
When you update data using the data load utility, the updated data might not show up in the Management Center.
The following scenario is an example of an unexpected
behavior:
- You observe that the price for a product is $20.
- You update the product price to $15 using the Data Load utility.
- You refresh the product, but the product price is still $20 in the Management Center.
- You check the database, and the product price is changed to $15.
This unexpected behavior is caused by data cache in the WebSphere Commerce Server. You need to invalidate the data cache so that Management Center can pick up the new object update (new price for example).
Solution
To invalidate data cache on the
Data Load utility:
- Add a property to the
<_config:BusinessObjectMediator>
element in the business object configuration file as shown:<_config:BusinessObjectMediator className="com.ibm.commerce.price.dataload.mediator.OfferMediator" componentId="com.ibm.commerce.price"> <_config:property name="DataCacheInvalidationEnabled" value="true" /> </_config:BusinessObjectMediator>
Note: The default setting for data cache invalidation is false.
<_config:LoadOrder>
element.For
more information about the DataCacheInvalidationEnabled
configuration
property and other Data Load utility and Catalog Upload properties,
see Data Load utility configuration properties.