![]() |
Fix for slow spidering in PhpDig 1.8.x
Some people using PhpDig reported severe perfomance impact when moving from version 1.6.x to 1.8.x.
I was one of them. It could take more the 20 seconds for me to index a single page with version 1.8.x. PhpDig 1.6.x indexed the same page in less then a second. This happened only under win32. Finally I found the cause of it. Look at the following code: PHP Code:
As stated in HTTP/1.1 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Quote:
To fix this search for the following in robot_functions.php file: ."User-Agent: PhpDig/".PHPDIG_VERSION." (+http://www.phpdig.net/robot.php)".END_OF_LINE_MARKER.END_OF_LINE_MARKER; There will be a total of 3 matches (lines 354, 460 and 628) Insert before each of them this line: ."Connection: close".END_OF_LINE_MARKER Hope this will help. |
This correction will make a big difference for spidering speed. I suggest that everybody (and Charter) will implement this immediately! Thank you very much.
-m- |
Wow, I think that fix really helped me. I applied it and it looks good!
Great work! -Brian Sutton http://www.piedmontswingdance.org/search |
I tried it, but I am not seeing any faster results. According to my log file, pages at my site are still being indexed at around 60 - 90 seconds per page.
|
All times are GMT -8. The time now is 03:40 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.