cancel
Showing results for 
Search instead for 
Did you mean: 

Cache Buster - Changes not reflecting

Kishore
Participant
0 Kudos

Hello All,

I am trying to test the cache buster functionality by making a change in extended application

(Fiori My Timesheet). After making the changes, I am executing the programs /UI2/INVALIDATE_GLOBAL_CACHES and /UI5/APP_INDEX_CALCULATE(Only for timesheet application) in the sequence.

Our Launchpad URL is a default url '/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html', we have created an external alias with alias url as /sap/bc/ui5_ui5/ui2/ushell/shells/abap and Trg Element as /sap/bc/ui2/flp.

Even after performing the steps, the changes are not reflecting in the browser. If I Empty the cache and hard reload the application, the changes are appearing in the screen.

We don't want the users to clear the browser/device cache manually whenever there is a change in the application.

Please suggest what is missing to achieve this.

Thanks,

Kishore.

Accepted Solutions (1)

Accepted Solutions (1)

Kishore
Participant
0 Kudos

Hello All,

The problem is the case sensitivity of the component name. The launchpad customization was done with application name in all capital letters.

Changing it to all small letters solved the issue. Though its a strange thing its how it behaves.

Thanks,

Kishore.

Answers (3)

Answers (3)

former_member197071
Participant
0 Kudos

Try using following URL in your apps index.html

<script type="text/javascript" 
  	src="https://openui5.hana.ondemand.com/1.54.6/resources/sap-ui-cachebuster/sap-ui-core.js">
</script>

Also try to perform following activities:

1.Clear the server http cache Go to the transaction SMICM. Goto -> HTTP plugin -> Server cache -> Invalidate Locally and Globally.

2. Clear metadata cache Transaction: /IWFND/CACHE_CLEANUP on Gateway Transaction: /IWBEP/CACHE_CLEANUP on Backend and Gateway

3. Synchronize chip cache Run the report /UI2/CHIP_SYNCHRONIZE_CACHE. Make sure there is no error in the table /UI2/CHIP_CHDR Run the report /UI2/DELETE_CACHE_AFTER_IMP. /UI2/DELETE_CACHE

4. Run cache buster Run the report /UI5/UPDATE_CACHEBUSTER.

5. Clear local browser cache

6. Run reports /UI2/INVALIDATE_CLIENT_CACHES, /UI2/INVALIDATE_GLOBAL_CACHES & /UI5/APP_INDEX_CALCULATE in SE38. Use Full Calculation in last one.

Former Member
0 Kudos

Hi Kishore,

We are also facing the same issue : UI changes are not reflecting the app level and also at the brower level.Followed the same steps which is suggested by you , can you please let us know where exactly he changes are done at the launch pad customization .

Kishore
Participant

Hello Satyavathi,

In transaction LPD_CUST you have to make sure the component name should be in all small letters. The same applies for component.js file.

Thanks,

Kishore.

former_member227918
Active Contributor
0 Kudos

are you changing css part and its not reflecting? I think cache buster doesn't handle css part.

Kishore
Participant
0 Kudos

Hello Akhilesh,

I did a change in i18n file along with a change in component file to enable a field.

When we try to login the app with a new user id, the latest changes are reflecting. Whereas the same is not true for a user id which we generally login.

Also one observation is that the changes are reflecting after a certain time period.That too its not consistent.

Thanks,

Kishore.

former_member227918
Active Contributor
0 Kudos

I think, i18n changes also is not handled by cache buster.

what cache buster does is: scripts versioning meaning read all scripts only, change the script file name with appending some timestamp etc. and load these scripts, so that every time a new version of scripts will be loaded.

regarding your observations:

browser keeps cache along with few parameters like userid/name/timestamp and expiry datetime.

And cache data will be destroyed automatically once cache memory is full or its expired.

So behaviour may not be same/consistent.