# Hot vs. Cold Restarts

The load time of your site is dependent on a few different things. When talking about hot vs. cold restarts of your Umbraco CMS website it comes down to whether the search indexes need to be rebuilt.

* **Cold restart**: When the search indexes need to rebuild.
* **Hot start**: When the search indexes do not need to rebuild.

## Hot start

When no cache needs to be rebuild, the restart of your site is generally faster. This is why it is referred to as a **hot restart**.

## Cold start

The **cold restart** expression is generally used for when the search indexes need to rebuild. This will resolve in a slower startup time, depending on the amount of content on the site. Generally speaking, the more content you have the longer a cold boot will take.

## Troubleshooting slow startup

Different things could be in play when your site is slow to startup after a reboot/restart.

Below is a list of some of the more common reasons:

* The search indexes need to rebuild (cold restart).
* Examine indexes need to rebuild - for large sites, this can take some time.
* The custom code on the website is not optimized and does not live up to .NET standards.

## In Memory Auto

Another factor that can slow down time to first page load is the [In Memory Auto models builder](/umbraco-cms/18.latest/develop-with-umbraco/templating-and-rendering/templating/modelsbuilder/builder-modes.md#in-memory) setting. Having this setting enabled will result in the first page load being slower. The reason for this is that when the first page is requested, the strongly typed models needs to be compiled and loaded in.

This is, however, less noticeable on consecutive restarts, a bit like hot and cold restarts. Since the compiled models will be cached on disk, they don't need to be recompiled until the models change again.

## Legacy Umbraco

In earlier versions of Umbraco, the difference between hot and cold restarts was more distinct as more components were involved with this process.

[Learn more about the different restart processes in the legacy documentation](https://our.umbraco.com/documentation/Reference/Events/Hot-vs-Cold-restarts).

The process for [troubleshooting slow startup times is also slightly different for earlier version of Umbraco](https://our.umbraco.com/documentation/Reference/Events/Troubleshooting-Slow-Startup).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.umbraco.com/umbraco-cms/18.latest/extend-your-project/server-side-extensions/notifications/hot-vs-cold-restarts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
