For Programmers: Free Programming Magazines  


Home > Archive > ASP > October 2004 > Cache in old ASP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Cache in old ASP
Jose Marciano

2004-10-27, 3:55 pm

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

Paul Baker [MVP, Windows - SDK]

2004-10-27, 3:55 pm

I have not heard of @OutputCache (remember, this is not a .NET group).

Are you talking about buffering the response? If so, you may need to use
Response.Buffer. Note, however, that this is True by default anyway on IIS 5
and higher.
http://msdn.microsoft.com/library/e...vbom_resopb.asp

Paul

"Jose Marciano" <Jose Marciano@discussions.microsoft.com> wrote in message
news:E0B858A1-F2F6-423A-9432-834A7B61E599@microsoft.com...
> 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
>



Mark Schupp

2004-10-27, 3:55 pm

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.

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com


"Jose Marciano" <Jose Marciano@discussions.microsoft.com> wrote in message
news:E0B858A1-F2F6-423A-9432-834A7B61E599@microsoft.com...
> 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
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com