Skip to main content

Checkup Documenation

Recompiles before app restart (.NET code)




The NumRecompilesBeforeAppRestart does just what the name would imply. It gets or sets the number of dynamic recompiles of resources that can occur before the application restarts. It is important this is set correctly as having the numRecompilesBeforeAppRestart setting set too low can cause unnecessary recompiles of your site which will negatively impact your page speed and possibly cause site down time. Here we are looking at your root web.config's system.web compilation node for this attribute.

Check Logic

Constant Care for Kentico will ensure the numRecompilesBeforeAppRestart attribute in the web.config is not the default value (default)

You can manage your settings for this checkup in the Constant Care for Kentico admin settings.

Verifying The Check

As it pertains to Web Site project types using Kentico Xperience, typically having a higher value (greater than 100) makes sense. To find this setting you will need to look in your root web.config file for the following code.

This check is in place to simply inform you that we found the default out of the box value. It doesn't mean this points to an issue, it just means it most likely was not thought through. Typically higher values are better than lower values.

For more information on this setting please visit Microsoft's documentation here:

Changes to your site should only be made by an experienced Kentico Xperience developer. If you need assistance in making these changes please reach out to the Toolkit For Kentico team to be connected with a Kentico Xperience partner.