New changes in asp.net4.0/vs2010 (2): Website auto-Preheat

Source: Internet
Author: User

Often we have some Web applications that do some initialization when the site is first accessed, such as loading data into the cache.

If a user is unfortunate enough to be the first visitor, he may feel that the site is slow, now that the ASP. NET 4.0 iis7.0/7.5 environment provides automatic preheating, which is equivalent to the system automatically acting as the first visitor, although it is only a small detail, but for the user experience, is a good improvement.

Open IIS 7.5 applicationhost.config file (C:\Windows\System32\inetsrv\config\applicationHost.config), in < applicationpools> Add a startmode= "alwaysrunning" property:

<applicationPools>

<add name= "myappworkerprocess" managedruntimeversion= "v4.0" startmode= "alwaysrunning "/>

</applicationPools>

Get!

New changes in asp.net4.0/vs2010 (2): Website auto-Preheat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.