Application restart

Sitefinity CMS API exposes several overloaded methods, which you can use to trigger a restart of your Sitefinity CMS application. To do a restart, you can use the following code:

In the code above you initiate an application restart by calling the RestartApplication() method of the SystemManager class. You can specify the restart reason, the type of restart you want to perform, and whether or not to send the restart application system message. 

Using SystemRestartFlags enumeration, you specify the type of restart. It has the following values:

  • Default
    Cleans the application cache and reinitializes the system.
  • AttemptFullRestart
    Unloads the application from the application domain.
  • ResetModel
    Resets the database model by forcing the metadata containers for each opened connection to be recreated.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?