• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Delay in ajax response time

#11
(10-23-2017, 04:32 PM)skunkbad Wrote:
(10-22-2017, 11:28 PM)wolfgang1983 Wrote:
(10-22-2017, 11:02 PM)skunkbad Wrote: I use a mail queue for all my websites. It's really an essential thing. As long as you have access to cron:

1) Instead of sending the email, put it in a database table with one field "sent" set to 0;
2) Use cron to check for email that hasn't been sent, send it, then update the "sent" field to 1; (I have cron check for unsent email once per minute)

This type of behavior has a lot of advantages. For one, you can always check if mail is going out. Also, it's really easy to resend email just by marking "sent" as 0 again. There is 0 email sending lag time, because it's being put in a queue.

Not sure how to use cron at all.

Everyone has to learn sometime:
https://www.educba.com/linux-crontab/

All done now. I had to use my website because my localhost xampp not the best for cron using the cpanel on cron job was easier.
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
RE: Delay in ajax response time - by InsiteFX - 10-22-2017, 03:22 AM
RE: Delay in ajax response time - by wolfgang1983 - 10-22-2017, 09:57 PM
RE: Delay in ajax response time - by wolfgang1983 - 10-22-2017, 04:01 PM
RE: Delay in ajax response time - by skunkbad - 10-22-2017, 11:02 PM
RE: Delay in ajax response time - by wolfgang1983 - 10-22-2017, 11:28 PM
RE: Delay in ajax response time - by skunkbad - 10-23-2017, 04:32 PM
RE: Delay in ajax response time - by wolfgang1983 - 10-24-2017, 03:50 AM
RE: Delay in ajax response time - by InsiteFX - 10-23-2017, 08:52 AM
RE: Delay in ajax response time - by wolfgang1983 - 10-23-2017, 11:50 AM
RE: Delay in ajax response time - by wolfgang1983 - 10-24-2017, 03:52 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.