OutputCache tied to a User Session or to the Application?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Question123
    New Member
    • Feb 2008
    • 41

    #1

    OutputCache tied to a User Session or to the Application?

    Hello

    I have a .Net 2.0 site and am investigating caching. Using the OutputCache directive seems to work well but there is one thing I am unsure of.

    Consider two website users UserA & UserB. If UserA browses to a page with OutputCache turned on, the server executes the code caches the HTML in the page.

    If UserB then requests the same page, does the server have to re-execute the page (because it is a different user) or does it use the same cached copy from when UserA accessed the page?

    So I guess what I am asking, is OutputCache tied to a User Session or to the Application?

    if its tied to Application How colud i make it to tied to User Session ??
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    Originally posted by Question123
    Hello

    I have a .Net 2.0 site and am investigating caching. Using the OutputCache directive seems to work well but there is one thing I am unsure of.

    Consider two website users UserA & UserB. If UserA browses to a page with OutputCache turned on, the server executes the code caches the HTML in the page.

    If UserB then requests the same page, does the server have to re-execute the page (because it is a different user) or does it use the same cached copy from when UserA accessed the page?

    So I guess what I am asking, is OutputCache tied to a User Session or to the Application?

    if its tied to Application How colud i make it to tied to User Session ??
    Output cache depends on "duration", "location" and "VaryByPara m"..
    <%@ OutputCache Location="" VaryByParam="" %>
    Location can be client server , none, downstream or any.

    Comment

    • Question123
      New Member
      • Feb 2008
      • 41

      #3
      Originally posted by DeepBlue
      Output cache depends on "duration", "location" and "VaryByPara m"..
      <%@ OutputCache Location="" VaryByParam="" %>
      Location can be client server , none, downstream or any.
      Hello
      i want to cache page per user.
      how could be done??

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        What happened to the advice given inthis thread.? Double posting is a no no here.

        Comment

        Working...