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.
RestartApplication()
SystemManager
Using SystemRestartFlags enumeration, you specify the type of restart. It has the following values:
SystemRestartFlags
Default
AttemptFullRestart
ResetModel
When you upload dll files on a live website, during the copying and pasting, the website is restarted several times, but the application pool is not recycled. Because the site is public, each one of those restarts is waiting for the whole site startup procedure. To prevent multiple website restarts during dll files upload you must change the following setting in your web.config file:
dll
web.config
The waitChangeNotification and maxWaitChangeNotification values are in seconds and must be higher than the total time taken by the copy - paste procedure in seconds. This can speed up the time that it takes for the site to load after upload.
waitChangeNotification
maxWaitChangeNotification
The following diagram explains the basics of how an ASP.NET site is hosted in the w3wp.exe process:
w3wp.exe
For more information, see HttpRuntimeSection.WaitChangeNotification Property and HttpRuntimeSection.MaxWaitChangeNotification Property
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
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.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important