Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Output Cache - Not Working

Thread Tools

Re: Output Cache - Not Working

Alexey Smirnov
Posts: n/a
On May 23, 4:53 pm, Adotek <(E-Mail Removed)> 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.

Reply With Quote
Posts: n/a
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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
To cache or not to cache David Lozzi ASP .Net 3 08-21-2007 03:40 PM
Re: Output Cache - Not Working Ian ASP .Net 0 05-23-2007 09:11 PM
Output Cache - Not Working Adotek ASP .Net 0 05-23-2007 02:53 PM
no-cache - need to reload page from server and not the cache John HTML 2 10-29-2006 05:35 PM
Output cache not working on iis 6.0 vikram ASP .Net 0 09-29-2006 09:57 AM