EXPLAIN THE USE OF DURATION ATTRIBUTE OF @OUTPUTCACHE PAGE DIRECTIVE

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
 1195  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    Explain the use of duration attribute of @OutputCache page directive

    The @OutputCache directive’s Duration attribute determines how long the page is cached.
    If the duration attribute is set to 60 seconds, the Web form is cached for 60 seconds; the server loads the response in memory and retains that response for 60 seconds.
    Any requests during that time receive the cached response.
    Once the cache duration has expired, the next request generates a new response and cached for another 60 seconds.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!