473,626 Members | 3,294 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1131

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

Similar topics

4
1809
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 SID information is not part of the #fragment? Thanks in advance. Stuart Baker
0
1053
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 the definition of the control <%@ OutputCache Duration="50" VaryByParam="x"%> I,ve got two pages (page1in and page2in) that submits to
0
1733
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 while to be processed. At the moment I have programmatic page caching in the "loader" using paramater caching to send a cached version of every requested page back to the user. How can I get particular elements inside each page to cache without...
3
2478
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 want caching on. Is this doable? I think there is a config switch in 2.0, anything in 1.1? TIA for any hint,
2
1171
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, we create a web user control and cache that control. Which will means that during the querry process remaining page control will be visible while the querry gets executed. Then what happen if let say the querry takes more than 1 minutes to return...
1
1242
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 datatables) but not the rest of the page ?
3
2074
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. If the URI is relative, it MUST be resolved to obtain an absolute URI as specified in XML Base specification ." I guess they really mean "URI reference" and not "URI" in the formal sense. But anyway, consider this document:
0
1122
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 driven so would make sense to use output caching to reduce load. The menu changes very rarely. For some reason though, the "fly-out" dynamic menus (1 level) don't work properly with cachign enabled. I can click one of the sub-menus but on the...
0
985
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 caching of the control doesn't work because the displayed time is updated each time I refresh the page.
0
8262
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.