Force refresh on clients post administrative changes

Any administrative changes should force a refresh on the clients. I know it would be obvious to the team. Just wanted to know the team’s perspective.

Using message bus to change the values inside ember would be a possibility too, but not completely sure about the feasibility.

We already do this, if we detect the version changes on the next route transition we force a full reload, what specifically are you trying to do?

2 Likes

If you’re in a plugin, either use refresh: true in your site_settings.yml or Discourse.request_refresh!.

https://github.com/discourse/discourse/blob/af4938baf15b4551ba8fc9727e6b9f482afd50c7/lib/discourse.rb#L572-L582

2 Likes

Lovely. Helps a lot. I’ll take a look at the settings which have refreshing enabled. I’m sure its not enabled atleast on a few settings.

A post was merged into an existing topic: Enforcing Hard Refresh