Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageI 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 >
Post Follow-up to this messageIf 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 >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.