Web Serving

Speed up page load when index.php is the default

Geeklog – Server:

I found an interesting performance tweek that was staring at me the whole time. After noticing 2-4 second delays in page rendering before geelog would load (I noticed geeklog said it loaded in, say .91 seconds yet from the time I hit enter on the web page, it tool 4-7 seconds to load).

For those using Apache, you MUST list index.php first as your DirectoryIndex . This one fix jumped my render time from 4-7sec to the true .91 sec. Mine looks like this now:

DirectoryIndex index.php index.htm index.html

Take care and happy GL’ing.

I was looking for something else and this little note caught my eye.
Why not try it and see what happens?

Load all the PHP home pages.
Swap the pair (.html / .php).
apachectl graceful
Yes, wall clock time to load pages is shorter.

Who knew?