Search code examples
c#sitecorehttpcontextsitecore6

Does Sitecore.Context.Item make use of HttpContext?


Does Sitecore make use of the HttpContext to save needless calls to the DB?

Specifically for the context item and database?

Thanks


Solution

  • Yes. Take a look at Sitecore.Caching.ItemsContext. It uses HttpContext.Current.Items to save the context Item. The context database is in there as well.