473,416 Members | 1,740 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,416 software developers and data experts.

Fragment Caching inside page caching?

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 removing
the 'wrapper caching' that I have in place. Removing the main page caching
and caching only small elements in all called pages will have no benefit at
all. If I make a user control and put it in the page using fragment
caching, the fragment cache is overridden by the page caching.

An example of this is in each page render a common copyright message is
placed at the bottom of the page, showing "copyright 2003 - 2004". The 2004
bit is the current year. With page caching, the 2004 bit never changes, so
from the transition from 2003-2004 I had to invalidate caching for every
page by re-saving the main loader page, so all pages had to be re-processed
in order to be cached. That seems a big waste.

Another example is I have a filedownload.aspx file that shows the current
file size in megabytes. The file size never changes while the cache is in
effect, and the only way to get it to show the current size is to invalidate
the filedownload.aspx file cache.

Can someone help me improve this model?

Regards,

Troy
Nov 18 '05 #1
0 1721

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

Similar topics

2
by: Tim | last post by:
I'm building a .NET C# web application using web caching. The Cache class only works when I'm using an aspx page. I want this Caching logic to be in its own class file (.cs) in another project so...
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...
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,...
0
by: Ed | last post by:
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...
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...
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...
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
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: 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?
0
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,...
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
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.