Brief Introduction to outputcache and webpage cache [cache for improving execution efficiency]
Source: Internet
Author: User
The so-called output cache writes the results to the output cache after msil is executed, and then transmits the output cache to the browser. In the future, if you browse the same web page, ASP + first checks whether the webpage has an output cache. If yes, it directly transfers the output cache to the browser without compilation. aspx and msil execution process can improve the execution efficiency.
Here I will only talk about how to start the output cache. I am not very clear about other things at present: the method for starting outputcache is very simple, as long as the following mark is added at the beginning of the. aspx webpage:
<% @ Output cache duration = "seconds" %>
The durtion indicates the number of seconds that output cache is retained in the system:
<% @ Output cache duration = "10" %>
The output cache of the result web page will be retained for 10 seconds in the system, and ASP + will directly pass the output cache to the browser when you browse this web page within 10 seconds, the compilation process is omitted! You can try it! Good stuff !!!
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.