Cache in old ASP

J

Jose Marciano

Hello.

Could someone tell me the way(s) of doing cache in old ASP pages?

What i really wanted was to keep in cache for some time the HTML generated
by an ASP page (something like the "@OutputCache" directive of .NET).

Thank you in advance.
Jose Marciano
 
M

Mark Schupp

If there is not a great deal of HTML involved you can put it into an
Application variable and set another variable with a timestamp. When the ASP
page is requested grab the text from the application variable or re-generate
it based on the timestamp.

Or write the html out as an html file and put timestamp in an application
variable. If the html is not too old then redirect to the html page
otherwise re-direct to an asp page that recreates the html.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top