Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
akshaya_p
Contributor
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.
6 Comments
Labels in this area