HighTechTalks DotNet Forums  

Can't get output caching to work with user controls

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Can't get output caching to work with user controls in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
g2m
 
Posts: n/a

Default Can't get output caching to work with user controls - 12-06-2007 , 04:38 PM






I have a large section of a page that I need cached. So I've got this
section in a user control and at the top of the user control I've
added -
<%@ OutputCache Duration="3600" VaryByParam="none" %>
<%@ Control Language="VB" AutoEventWireup="false"
CodeFile="filename.ascx.vb" Inherits="controls_filename" %>

There is no outputcache directive in the containing page. On accessing
this page, it takes a significant amt of time to load. Accessing it
the 2nd time loads a bit faster but not significantly. When I moved
the outputcache directive out of the user control and to the
containing page, the loads are significantly faster. Any ideas on why
caching at the user control level is not working or is significantly
slower?

Thanks for any input.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.