HighTechTalks DotNet Forums  

Fragment Caching

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


Discuss Fragment Caching in the ASP.net Caching forum.



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

Default Fragment Caching - 01-30-2006 , 03:34 PM






Hi all,

Have a strange situation regarding fragment caching. I've read the docs and
kbs on this so it's either I've missed some key aspect of the implementation
or there is a "gotcha" here that isn't described in these resources
(kb/docs).

Brief:

We've had a production level *page* caching implementation running for some
time now, which works perfectly.

We need to add a user control that is dynamic. This therefore means that we
have to "segment" the page, which is already made up of user controls
(ascx), and implement *fragment* caching where one or more user controls in
the page will remain dynamic, the rest is output from cache. Sounded simple
enough.....

Adding the OutputCache directive to the specific usercontrol we do want to
cache (it's the "expensive" one that displays data from db), doesn't work as
expected:

- it shows up on initial request, as expected, including any paging data
(page 1, 2, etc...)
- it *does not* show up on subsequent request, *until after duration
directive*, so if the duration is 10, then it will only display after 10
seconds. So you can say, it "somewhat" works...

There is no other @ OutputCache directive, on the containing page (aspx),
nor any other user control (ascx) on the page.

I'm pretty sure we're missing a key concept of fragment caching something
here....

Thanks to anyone who can offer advice.

--
Cheers,
Ed Chavez
A bona fide Microsoft drone







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 - 2009, Jelsoft Enterprises Ltd.