joecooper Posted April 4, 2013 Share Posted April 4, 2013 My site is basically a search engine. To index pages, the server has to run a PHP file once per minute, and that file could hang for around 30 seconds. While that is loading, the server will not process any other PHP pages even from other devices, until that script finishes. The indexing script does do a lot with MySQL, adding 1000's of entrys each time. Is there a way to make the script run as a low priority or somthing to allow users to use the site without long loading times? The script is on a VPS with a fast connection and enough resources etc. Thanks! Joe Link to comment https://forums.phpfreaks.com/topic/276537-php-requests-keep-hanging/ Share on other sites More sharing options...
joecooper Posted April 6, 2013 Author Share Posted April 6, 2013 Bump? I am running a Windows VPS btw. Thanks. Link to comment https://forums.phpfreaks.com/topic/276537-php-requests-keep-hanging/#findComment-1423317 Share on other sites More sharing options...
Christian F. Posted April 6, 2013 Share Posted April 6, 2013 Without seeing the code we cannot help you, I'm afraid. Link to comment https://forums.phpfreaks.com/topic/276537-php-requests-keep-hanging/#findComment-1423320 Share on other sites More sharing options...
trq Posted April 6, 2013 Share Posted April 6, 2013 I am running a Windows VPS btw.Yuk. Anyway. I would probably run another vps instance for this task. Link to comment https://forums.phpfreaks.com/topic/276537-php-requests-keep-hanging/#findComment-1423334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.