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

  1. Go to the Home/_System Structure Group.
  2. Select the Publish Settings Page and click Publishing > Publish.
    The site configuration and resources are republished to the Web application.
  3. Go to your Web application and enter the URL /admin/refresh refresh the cache and reload the settings in the Web application.
    You will be redirected to the homepage and the new settings will be in place.

What to do next

If you are not comfortable with having a URL based refresh mechanism, implement an alternative as follows:
  • Update the AdminController to remove the refresh route and implement your own method to trigger a refresh in code using the SiteConfiguration.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.