Jump to content

PHP requests keep hanging


joecooper

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.