Refreshing Web application settings
Most Web application configuration and resources are managed and published from the Content Manager to avoid custom configuration in the Web application configuration files and allow you to update configuration centrally without having access to the Web application servers. If you have changed a configuration or resource setting, republish the Publish Settings page.
Procedure
What to do next
If you are not comfortable with having a URL based refresh mechanism, implement an alternative as follows:
- Update the
AdminControllerto remove the refresh route and implement your own method to trigger a refresh in code using theSiteConfiguration.Refresh()method. - If your Web application implements authentication, you can put role based authorization on the refresh route by adding an Authorize attribute to the Admin controller Refresh action:
[Authorize(Roles="Administrators")]. - Implement a simple URL parameter check for a secret pass phrase.