3

We have a community composed of multiple LWC.

We are planning to release a big update in our production environment. When testing in other environments, some testers who had used the community previously could still see the old version of the community (or at least of some LWC) until they refreshed their cache. This situation is fine for developers and testers but we would like end users to have access to the latest version of our community as soon as it is available without having to ask them to refresh cache as they might not be proficient with computers.

Because some of our apex classes have changed the parameters they receive, having access to the old version of our LWC effectively means that the site is broken as the call to the backend always returns an error.

Would deactivating and reactivating our community after the release fix this kind of problem ?

Thank you for the help !

2
  • 1
    I typically would suggest looking into disabling enable secure and persistent browser caching under Session Settings but I've seen comments (particularly in this question) that production still may do some caching. Not sure if you've attempted that. – Kris Goncalves May 10 at 16:49
  • @KrisGoncalves we also thought about it, but as this issue is breaking production I was wondering about a solution for which we are 100% sure of it working. Also I was wondering how long we would have to keep this setting to false before everyone's cache is cleaned and we can enable it again. – Sacha Dieryck May 11 at 7:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.