To speed up Textpattern’s loading of pages, edit the file
Replace:$out['ip'] = @gethostbyaddr($_SERVER['REMOTE_ADDR']);
With:
$out['ip'] = ($_SERVER['REMOTE_ADDR']);
On line 18 of textpattern/publish/log.php
Note: Log entries will only display an IP now, instead of a hostname. But if you use another package to generate statistics (i.e., Urchin on Textdrive) you can still view that information there.
(This disables a DNS lookup for every IP that hits your site. Seems to work pretty well here… pages load up much quicker, for me anyways.)
