Entering content frame

Procedure documentation Invalidating Objects in the Cache Locate the document in its SAP Library structure

Use

You must make it possible to invalidate an object in all the ICM Server Caches it is located in in the SAP System. This may be necessary if, for example, a picture in the MIME repository has changed.

If an object has to be invalidated, all servers in the system must be notified by RFC that this object is no longer up to date and should be invalidated. The next time the object is requested, the up-to-date version of it must be re-loaded into each cache.

For a description of how to identify cache objects that have to be invalidated, see Identifying Objects.

Procedure

You invalidate objects using method calls from the application (BSP application, HTTP request handler) or from the system (ICM monitor).

Invalidation using Method Calls

To invalidate objects in the cache, you can use the following static methods of the class CL_HTTP_SERVER . You can call the methods from your application.

SERVER_CACHE_INVALIDATE

Invalidates the object specified in the ICM Server Cache. This method has the following input parameters:

SERVER_CACHE_INVALIDATE_LIST

Invalidates a specified list of objects in the cache. The input parameters are a list of IDs and scope.

SERVER_CACHE_INVALIDATE_ALL

Invalidates all objects in the ICM Server Cache.

Invalidation from the ICM Monitor

You can also invalidate individual entries or the entire cache from the ICM Monitor (transaction SMICM). This is described in Structure link Monitoring and Administrating the ICM Server Cache.

 

 

Leaving content frame