Skip to main content

Checkup Documentation

Optimize compilations (.NET code)

severity-medium code-web-config-optimize-compilations


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.


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.

Not sure what to do?

If you are ever unsure about making changes to your site, we encourage you to reach out to your Kentico Xperience Gold Partner. If you do not have a partner, then feel free contact the Constant Care For Kentico team to get connected with an expert.