Skip to main content

Checkup Documentation

Optimize compilations (.NET code)




By default, the application compiles the entire site after certain changes. This can be a demanding operation. If this setting is enabled it allows dynamic compilation which will include only the files that were changed instead of the entire site. The optimizeCompilations switch in ASP.NET can greatly improve the compilation speed in some scenarios. 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 optimizeCompilations attribute in the web.config is true (default)

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

Verifying The Check

Typically we recommend that this value is present in your applications.


For more information you can visit Microsoft's documentation here:

MVC Sites

This setting is not 100% applicable to MVC live sites (unless configured in custom code). It mostly applies to the Kentico Administration tool or Portal Engine based sites. For more information on this please reach out to the Toolkit For Kentico team.

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.