Hello,
Is there a way to read a page generated in the buffer back into a variable?
I am trying to save a complex dynamic page in a static one to reduce overhead....
Any thoughts?
Scott
Printable View
Hello,
Is there a way to read a page generated in the buffer back into a variable?
I am trying to save a complex dynamic page in a static one to reduce overhead....
Any thoughts?
Scott
Uh... am I missing something here? If you make it static it will be the same for everyone which would defeat the purpose of generating it dynamically. If you don't need it to be dynamic, why is it?
I'm a bit confused. I don't see any way this will make it faster because you are then taking it out of the server's memory and putting it back into the server's memory again. It's alot faster for the server to simply send it from memory to the html stream.
I can't really help with the actual question except suggesting to look at some kind of ISAPI wrapper (?), but suppose you have some .asp pages that generate a phone list of employees from a database. However, the phone numbers in the database only get updated once or twice a month. Is it worth is to query the database every time someone looks at these pages, or just re-create static html documents when the DB is updated?Quote:
Originally posted by monte96
Uh... am I missing something here? If you make it static it will be the same for everyone which would defeat the purpose of generating it dynamically. If you don't need it to be dynamic, why is it?
I'm a bit confused. I don't see any way this will make it faster because you are then taking it out of the server's memory and putting it back into the server's memory again. It's alot faster for the server to simply send it from memory to the html stream.
I work at a University. The helpdesk home page contains an expensive to compute "blog" list of headlines.
All of the computer lab computers have this page set as default so the page gets many hits per day. Since the server has many other uses, I don't want to load it down with something that is a waste of processor power.
The trouble is that the way the blog is printed out is using tons of <%= %> commands everywhere so it would take a considerable amount to time to reformat that into loading a variable. After the variables is loaded I can write into a static file.
Thanks,
Scott
It sounds like you need a server side script that will rewrite a static page once a day (or however often). In other words, you don't need to use ASP at all. You just have a shell script, or a batch job, or a stored procedure, or something that is scheduled to update this page.