Refresh page when mysql value changes

I am no expert in this, but I suspect you’d need to have some kind of JavaScript on the client page to periodically query the setting table, and update the page when the value changes. More often I see how people want to change the page without reloading it, wouldn’t it be possible to just have your JS check, see the value has changed, then just do a page reload as part of the response handler?