By Jannik L. on Thursday, 12 June 2014
Posted in General Issues
Replies 5
Likes 0
Views 546
Votes 0
Hey guys,
I have setup cron jobs for my site, although admittedly I get a bit impatient and would like e-mails sent out closer to realtime than every 5 min.

What I would like to know is why is sending them on page load bad? Does it slow down the site in general?

Would setting cron jobs to smaller intervals be better than page load? Or should I really just leave it at 5min and no page load?

This is not a high priority question, I just want to understand the pros and cons of each option better to make an educated decision.
Hello Jannik,

By default, for registrations, these are exceptional. They are sent immediately and it's not even queued because it does not make sense to queue registration emails. Only notification emails are queued in the system.
·
Friday, 13 June 2014 02:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah good to know. Although I still don't understand the difference in terms of performance. Does it slow down my website or server to enable page load? or why is it not recommended?
·
Friday, 13 June 2014 03:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jannik,

Yes, imagine when a user accesses your site, EasySocial tries to dispatch some emails at the background and dispatching emails are always slow because the server needs to communicate to the respective mail servers to dispatch out emails.
·
Friday, 13 June 2014 10:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah thanks for the clarification! One last question, is that also the case if I am SMTPing via Gmail?
·
Friday, 13 June 2014 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Yep, that's correct. When SMTP settings is enabled, the server needs to initiate a connection to the SMTP server to make a request to send emails. This is why it takes time to send emails. For every email that get's sent out, it need to initiate the connection.
·
Friday, 13 June 2014 13:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post