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

How do you 'cache' an ASP page?

Hi,

Can someone tell me how you 'cache' an ASP page? I run a football
predictions league site and some pages than calculate users points
stats and the league table are taking ages to load. I think this is
because its making loads of calculations (Although I could be wrong!).

Ive been told the best way to solve this problem is to run the ASP page
once and then 'cache' it. The page only needs to be run once to perform
the calculations so I shouldnt be making it run the calculations on
every request, as happens at the moment.

http://www.pool-predictions.co.uk/h...ers.asp?tab=a_d

Cheers...John

Nov 4 '06 #1
2 1038

<jo***********@yahoo.co.ukwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Hi,

Can someone tell me how you 'cache' an ASP page? I run a football
predictions league site and some pages than calculate users points
stats and the league table are taking ages to load. I think this is
because its making loads of calculations (Although I could be wrong!).

Ive been told the best way to solve this problem is to run the ASP page
once and then 'cache' it. The page only needs to be run once to perform
the calculations so I shouldnt be making it run the calculations on
every request, as happens at the moment.

http://www.pool-predictions.co.uk/h...ers.asp?tab=a_d

Cheers...John
If the data doesn't change very often you can use the
Scripting.FileSystemObject to write the players list to an include file only
when it changes, and call that into your page. Or you could cache the html
string in the Application Object and again, only update it when the data
changes and call that into your page.

But you are right - that page takes a long time to load. What code are you
using to generate the players list? (With as little html as possible,
please).

--
Mike Brind

Nov 5 '06 #2

http://www.mnot.net/cache_docs/#IMP-SCRIPT

<jo***********@yahoo.co.ukwrote in message news:11**********************@k70g2000cwa.googlegr oups.com...
Hi,

Can someone tell me how you 'cache' an ASP page? I run a football
predictions league site and some pages than calculate users points
stats and the league table are taking ages to load. I think this is
because its making loads of calculations (Although I could be wrong!).

Ive been told the best way to solve this problem is to run the ASP page
once and then 'cache' it. The page only needs to be run once to perform
the calculations so I shouldnt be making it run the calculations on
every request, as happens at the moment.

http://www.pool-predictions.co.uk/h...ers.asp?tab=a_d

Cheers...John

Nov 6 '06 #3

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

Similar topics

3
by: Bite My Bubbles | last post by:
I found the answer! It is a IIS 6 /ASP problem http://support.microsoft.com/default.aspx?scid=kb;en-us;332075
9
by: Just D. | last post by:
All, Did anybody see this strange effect? The web application is written in C#, ASP.NET, SQL, T-SQL, etc. A pretty usual stuff, complicated enough, but works fine until... Here is a question....
7
by: moondaddy | last post by:
I have a products catalogue that I'm putting online and there will be between 20 to 50 different pages of products. Each page contains a datagrid of products for a given category. However, the...
5
by: Darrel | last post by:
I thought this warranted a new thread. Yesterday I asked about access relatively static content...is it better to read from the DB, or just grab a text file. It was suggested that I use the DB...
14
by: Tom.PesterDELETETHISSS | last post by:
Hi, I think this question requires an in depth understanding of how a browser cache works. I hope I can reach an expert here. I may have found a quirk in the asp.net documentation or I don't...
5
by: kaczmar2 | last post by:
I have a page written in ASP.NET that uses some Javascript to modidy the .innerHTML property of a DIV tag. The page works great in FireFox, but in IE6, the page tends to pull the content out of...
11
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta...
5
by: Stan SR | last post by:
Hi, Some newbie questions.. :-) First, what is the namespace to use for the Cache class ? When I use this bit of code I get an error if (Cache==null) Cache.Insert("myUserList",userlist);...
2
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a site which I secure with forms authentication. When the user's sign on and hit one of the secure pages, I have this line in my code to ensure that the browser does not cache the page;...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.