2

So I disabled Enable secure and persistent browser caching to improve performance in caching as advised to disable caching.

On my laptop, caching is disabled.

However, after making changes on my Android app I have to clear the cache using combinations of the following steps, repeatedly for ~5 or 6 times before seeing new results:

  • Settings -> Advanced -> Clear cached data
  • Settings -> Advanced -> Lightning Settings -> Reload Salesforce
  • App info -> Clear Cache
  • App info -> Force stop

EDIT: It seems like it updates at time intervals, rather than button presses.

Currently I have to repeat this process on average 5 or 6 times before it actually does clear the cache and reload the HTML, CSS and JavaScript. It is taking a lot of energy. I'm looking for a simpler solution, especially for testing, (but also for deploying new versions to users).

Does anyone know where to disable, or clear this caching please?

Update 06/04/2024

It seems that the amount of times I have to repeat these steps have been reduces to ~1 or 2 times on average since I had set the App in which the LWC resides as start page.

Instead of launching another App on start of Salesforce, and navigating straight to the LWC page, without opening its parent App first.

2 Answers 2

2
+150

The only way to Clear App Cache Settings-->Advanced-->Clear Cached Data on mobile app and there is no easy or better way than this.

Here is an open idea to Clear cache option on page reload on Mobile App which you might want to review.

Also, check below options for details on clear cache.

1
  • I would add, as much as possible, to test in a regular browser (on laptop etc), using test cases etc. Then only test on mobile when there is no other way around
    – Z0q
    Oct 28, 2023 at 12:49
0

An alternative answer, my case. (5 months later)

It seems that none of these steps are needed, it automatically clears the cache when restarting the app (without force), since I had set the App in which the LWC resides as start page.

Since I had set the App in which the LWC resides as start page.

Instead of launching another App on start of Salesforce, and navigating straight to the LWC page, without opening its parent App first.

(Though I still would prefer to work on desktop as much as possible for productivity during development)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .