faqts : Computers : Programming : Languages : PHP : Common Problems : Caching

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 33 people (52%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

What's an easy way to cache a dynamic page as a static file?

Feb 10th, 2000 17:03
Ben Munoz, Nathan Wallace, Richard Lynch


You can use something like:
lynx -source http://www.mydomain.com/buildindex.php3 > index.html
in a cron job to update as often/seldom as you like...
where buildindex.php3 spits out the HTML for index.html
Often though PHP is fast enough as it is.  Try it and see.