PDA

View Full Version : Making a dynamic page a static auto build page ?


Benj
05-04-2003, 10:30 AM
Hi,
is there any system out there, that would build, lets say, every 30 minutes, a cached static version of a dynamic page ?

For example lets say index2.php is dynamic, pulling many data from a database.
Now I want something, that would copy the outpout to a static index.php page every 30 minutes, to reduce server load and page load when the user visits index.php.

Is this ever possible ?
Thanks,
Benj

phppete
05-04-2003, 02:04 PM
Yes you can do it, not sure why you would do it every 30 minutes, seems a little excessive. You could run it as a cron job. Here are some references and tutorials:

http://www.phpfreaks.com/tutorials/29/1.php

http://www.zend.com/zend/tut/tutorial-staub2.php

http://www.zend.com/zend/art/scriptcaching.php

HTH

Pete