In your Cron Job documentation, you provide this scenario:
Two questions:
1. I don't understand this scenario. If there are 10,000 emails to send and it takes an hour to send them on page load, how does a cron job send them any faster? It still has 10,000 emails to send. Wouldn't the users have to wait anyway? Especially if the cron job is set to run, say, only once per hour or half-hour?
2. At what point would I even need to use a cron job? I understand in your scenario, that if somebody comments on an update that has had 10,000 previous comments by unique users, then indeed, 10,000 emails would be generated, and this could cause problems sending them on Page Load. But what about a small site, with say 1000-2000 users, Would a cron job be necessary? The site is on a single-core VPS with 2GB RAM.
John posted a comment on an update which has 10,000 previous comments. To deliver 10,000 emails as soon as you post a comment would take more than an hour. Would you want your user's to wait?
Two questions:
1. I don't understand this scenario. If there are 10,000 emails to send and it takes an hour to send them on page load, how does a cron job send them any faster? It still has 10,000 emails to send. Wouldn't the users have to wait anyway? Especially if the cron job is set to run, say, only once per hour or half-hour?
2. At what point would I even need to use a cron job? I understand in your scenario, that if somebody comments on an update that has had 10,000 previous comments by unique users, then indeed, 10,000 emails would be generated, and this could cause problems sending them on Page Load. But what about a small site, with say 1000-2000 users, Would a cron job be necessary? The site is on a single-core VPS with 2GB RAM.