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: , ,