Re: Output Cache - Not Working

Discussion in 'ASP .Net' started by Alexey Smirnov, May 23, 2007.

  1. On May 23, 4:53 pm, Adotek <> wrote:
    > Hi All,
    >
    > I have just enabled output caching on a page, the URL is:
    > Menu2.aspx?user=simon
    >
    > My page/outputcache directives are:
    > <%@ Page Language="vb" AutoEventWireup="false"
    > Codebehind="Menu.aspx.vb" Inherits="OldInfra.Menu" Trace="true"
    > enableviewstate="False"%>
    > <%@ OutputCache Duration="60" VaryByParam="user" %>
    >
    > After enabling outputcache, I did not see any improvement in
    > performance, so I added this to the page:
    > Page Generated: <%=Now()%>
    > ...which always outputs a different time, so I guess this proves it
    > isnt working? Is there anything else I need to do?
    >
    > THanks,
    > Simon.


    Set the Trace attribute to false.
    Alexey Smirnov, May 23, 2007
    #1
    1. Advertising

  2. Alexey Smirnov

    Adotek Guest

    Hi All,

    Thanks for your replies.

    After some Googling, it seems this issue is due to having a
    response.flush in our code, which terminates the current requests
    thread and flushes the output to the client.
    Adotek, May 24, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vikram
    Replies:
    0
    Views:
    580
    vikram
    Sep 29, 2006
  2. John
    Replies:
    2
    Views:
    1,170
  3. Adotek

    Output Cache - Not Working

    Adotek, May 23, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    561
    Adotek
    May 23, 2007
  4. Ian

    Re: Output Cache - Not Working

    Ian, May 23, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    416
  5. David Lozzi

    To cache or not to cache

    David Lozzi, Aug 21, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    355
    vMike
    Aug 21, 2007
Loading...

Share This Page