I am after a little advice on working with Cron with PHP. My scenario is this:
I have a site with a lot of membership. Users have one or more URLS associated with their account. At midnight (or a specific time), I would like to name a script that will request websites for each user and update the database with the information that he finds. Think of it as a screen scraper service.
My question is about server stress. I will test this new feature on a shared server, but eventually I will switch to a dedicated server.
So, if the c.5000 membership has 2 URLs each, it's 10,000 websites that it will request. What do people think is the best way to do this? You have a cron job that runs the first 500 members, then in 10 minutes, run the next 500, etc. Etc.
or is there some kind of magic that I have not heard about that could help !?
Thanks for any tips!
source
share