Designer 10.7 | webMethods Service Development Help | Building Services | About Service Run-Time Parameters | About Service Caching | Controlling a Service’s Use of Cache
 
Controlling a Service’s Use of Cache
You use the properties in the Properties view to enable caching and to configure the way in which you want it to operate with the selected service. You use these settings to strike the right balance between data currency and memory usage. To gauge the effectiveness of your cache settings, you can monitor its performance by viewing service statistics with the Integration Server Administrator and then adjusting your caching values accordingly.
Note:
If you do not have administrator privileges on your Integration Server, work with your server administrator to monitor and evaluate your service’s use of cache.
When returning results for a cached service, Integration Server returns a reference to the cached results instead of the actual value of the cached results. If a subsequent step in the service modifies the returned result, Integration Server changes the cached value as well, which affects all references to the cached value. If any other service uses the cached results, those services will begin using the updated cache value. To address this issue, you can do one of the following:
*Do not change the results of a cached service in a subsequent step in the flow service.
*Configure the ServiceResults cache to return the actual value instead of a reference, you need to modify the service results cache. For more information about changing the ServiceResults cache, see the webMethods Integration Server Administrator’s Guide.
Important:Integration Server resets the cache for a service automatically whenever any edits are made to the service. However, if the input signature includes a document reference variable and the referenced document type changes, you must reset the service cache. If you do not reset it, Integration Server uses the old cached input parameters at run time until such time as the cached results expire. To reset the service cache from Designer, select the service and then click Reset next to Reset Cache in the Properties view. To reset the service cache from Integration Server Administrator, select Service Usage under Server in the Navigation panel. Select the name of the service and an information screen for that service appears. Click Reset Server Cache.