It’s a truth that loading a html page is much faster than loading php page. So there is a simple method to speed up the WordPress page loading. It’s converting dymantic pages to static html ones.
First, save the following to a new file cron.sh in the home directory:
wget -O /home/ucosfot/index.html http://www.ucosoft.com/index.php
Then, edit the user crontab, input “crontab -e” in the shell command, and input “*/10 * * * * /home/ucosoft/cron.sh” and save.
Up to now, the system will save the main page of the blog to index.html every 10 minutes. when someone visit the blog, they will get the index.html page with much less time cost.
Tags: PHP, Tips, WordPressPermalink: Code Library - Speed up loading of pages
Subcribe the update with Google Reader.
One Response
Kittle
November 22nd, 2006 at 12:59 am
1A simple and useful method to speed up the page loading.
RSS feed for comments on this post · TrackBack URI
Leave a reply