How can I turn PHP pages generated from a MySQL database into static, "cached" pages? I plan on setting up a database with a bunch of information that occasionally changes and displayed through several hundred pages. However, I don't want to query the database every time a page is requested. What's the best way to do all queries once, generate static pages, and be able to occasionally refresh the caches when I update the database?