473,385 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Fragment Caching

Ed
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 (whole page) 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.....

Result:
------

Adding the OutputCache directive to the specific usercontrol we do want to
cache (the "expensive" one that queries and 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...it's just that the supposed
cached data isn't there at all.

There is no other @ OutputCache directive, on the containing page (aspx),
nor any other user control (ascx) on the page. Resutls are identical when
implemented programatically via <PartialCaching>.

I'm pretty sure we're missing a key concept of fragment caching something
here, that or a limitation that isn't entirely documented.

Thanks to anyone who can offer advice.

--
Cheers,
Ed Chavez
A bona fide Microsoft drone


Feb 1 '06 #1
0 1110

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Stuart Baker | last post by:
I just added session support to a web site and the URL's that contain a #fragment no longer function. Is there a delimiter that I can add following the #fragment that will tell the browser that the...
0
by: quique | last post by:
Hi I,m gonna explain my scenario problem: I've got an user control that i want to cache in diferent pages attending to the value of a parameter x, to make t possible i put the next directive in...
0
by: Troy Simpson | last post by:
Hi, I have a website which is made up of dynamic pages. Each page that's loaded has some code which looks at which template to load amongst other things, which causes the page to take a little...
3
by: DC | last post by:
Hi, (ASP.Net 1.1) is it possible to (programmatically and globally) deactivate page fragment caching? We have only two scenarios, development stage where we want caching off and testing where we...
2
by: serge calderara | last post by:
Dear all, I have heard and read that fragment caching is used to cache a part of a web page in order to get remaining items vivible on the page. For example if a database querry is quite long,...
1
by: sam | last post by:
Hi, I know fragment caching where you can use a cached user control in a non-cached page (or the opposite) But without using a user control, how can I cache just a part of my page (two...
3
by: Gustaf | last post by:
I'm trying to grasp this little passage from the XBRL spec: "The xlink:href attribute MUST be a URI. The URI MUST point to an XML document or to one or more XML fragments within an XML document....
0
by: Ben Fidge | last post by:
I'm trying to use ASP.NET 2.0's Menu control in a UserControl with fragment cahcing but it doesn't work. This UserControl and menu combination make up my sites left hand navigation and is database...
0
by: Jens | last post by:
Hello, I've created a user control with fragment caching: <%@ OutputCache Duration="43200" VaryByParam="none" %> <% =now() %> In my local environment (PC with Visual Webdeveloper 2005) the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.