[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Ed

1/30/2006 8:34:00 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