Skip to Content
Technical Articles
Author's profile photo Akshaya Parthasarathy

Cache Cleanup in SAP Netweaver Gateway

Target Audience: SAP Fiori developers

Dear Readers,

I’m an SAPUI5/ SAP Fiori consultant.This blog is especially for SAPUI5 front end developers.This details about cleaning up of cache through various methods. Cache cleanup is required when we have made changes in the SAPUI5 code but it fails to reflect when the application is accessed through launchpad.

Problem

We all would have faced this issue of code changes not reflecting in Fiori launchpad or taking a very large amount of time to reflect in Fiori launchpad after we have made changes in gateway system.

This is because the old code is cached (like how we have cookies in browser , we have cache in gateway too) and hence our new code fails to reflect in the launchpad.

 

How do you fix  this?

We upload SAPUI5 applications to SAP Gateway system through se38 transaction.

Program:/ui5/ui5_repository_load.

After upload of  applications,we need to manually clear all possible caches so that a fresh copy of our code is taken when we access the app from launchpad.

There are a set of programs and T-codes that clear cache and these are to executed in SAP netweaver gateway

 

Programs to Delete Cache

Go to Transaction se38 and execute the following programs

1. /ui2/delete_cache_after_imp


2. /ui2/invalidate_client_caches

3.

To recalculate index of an app

/ui5/app_index_calculate

Choose tab singleUI5 repository only. Give name of you app and execute

 

4. To invalidate global cache

/ui2/invalidate_global_caches

give execution mode and execute

WARNING:This restructures the target mapping Index for all apps for all users. Hence should be used with caution

 

5. To delete metadata cache

/ui5/del_odata_metadata_cache

 

 

T-codes for cache cleanup

Execute the following T-codes

To clear front end cache

/n/iwfnd/cache_cleanup

 

To Clear backend Cache

 

/n/iwbep/cache_cleanup

 

To clear Global Cache

/nsmicm
goto->HTTP Plugins->Server Caches->Invalidate globally

 

 

Clear all cache of the service

/n/iwfnd/maint_Services

select the service->Service implementation->Cleanup cache

Clear cookies in browser and hit the app from launchpad.The changes you have made in the app will reflect in the launchpad with immediate effect.

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Mounika Guni
      Mounika Guni

      Very nice blog

      Author's profile photo Chris York
      Chris York

      I am hearing that clearing global cache should never be done because it impacts all users and apps.  What is the risk of running this transaction?

      Author's profile photo Ward Peng
      Ward Peng

      Great blog!

      Author's profile photo David Nguyen
      David Nguyen

      If you restarted the SAP gateway, does it clear cache automatically?

       

      Thanks

      DN

      Author's profile photo Akshaya Parthasarathy
      Akshaya Parthasarathy
      Blog Post Author

      By restarted i presume you are logging off and logging back in?

      If thats the case it doesn't clear cache automatically

      Author's profile photo Ylse Maria Gonzalez Fagundez
      Ylse Maria Gonzalez Fagundez

      Hello, great information.

      How long can this execution take?