Halve the Queries, Double the Fun

For anyone running a Wordpress site, you might want to check out the prerender plugin by jens persson. Instead of fetching content and performing the rendering when a page is requested, it renders the page the first time it’s requested and stores the prerendered content in the database. From then on, it just has to grab the prerendered stuff, rather than reapplying markdown, acronyms, validation, whatever rendering tools you use. It can really cut down server processing time for your page loads, and I haven’t noticed any rendering bugs yet.

One important note, though - if you use any <span id="more-111"></span> tags to split up your content, you’ll need this addition by mike lu. I did find a few bugs in that script… get my updated copy here and save with a php extension, replacing your prerender.php plugin.