cancel
Showing results for 
Search instead for 
Did you mean: 

sap.fe v4 custom object page sections and caching issues

hschaefer123
Participant

Hi,

while working with custom ObjectPage sections using extension, i ran into caching issues to be able to see my changes inside the browser.

After some investigations (and a nice hint on twitter) i figured out, that the underlying sapui5 cache is the reason for this, because the custom extensions are cached in the browser indexedDB storage.

To get rid of this, i am using the following line inside my Component.js

// disable ui5 cache for reuse components while developing
sap.ui.getCore().getConfiguration().setUI5CacheOn(false);

Is there a better way of controlling this feature while developing?

If not, i will wrap this at least in an if like (location.host === 'localhost') to avoid prod issue without cache.

Best Regards

Holger

View Entire Topic
marcel_waechter
Advisor
Advisor
0 Kudos

Hi,
you are right, this flag is an experimental flag, this is the case since years already. I'm not sure if this will change but I will ask the UI5 colleagues.

For now sap-ui-xx-viewCache=false is still the right flag to disable the view cache.

As an alternative it can also be set directly in the UI5 bootstrap. This is what Fiori tools add now to the index.html which is just used for testing.

Best regards,
Marcel