From 59ffd9c6f8d07f433765ec0a3a19bd88cf912b0b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 4 Feb 2018 11:38:10 +0200 Subject: [PATCH] Throttle emails --- app/Ninja/Mailers/ContactMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Mailers/ContactMailer.php b/app/Ninja/Mailers/ContactMailer.php index 74543149b600..982d56ec5d8f 100644 --- a/app/Ninja/Mailers/ContactMailer.php +++ b/app/Ninja/Mailers/ContactMailer.php @@ -368,7 +368,7 @@ class ContactMailer extends Mailer // http://stackoverflow.com/questions/1375501/how-do-i-throttle-my-sites-api-users $hour = 60 * 60; - $hour_limit = 100; // users are limited to 100 emails/hour + $hour_limit = 50; // users are limited to 50 emails/hour $hour_throttle = Cache::get("email_hour_throttle:{$key}", null); $last_api_request = Cache::get("last_email_request:{$key}", 0); $last_api_diff = time() - $last_api_request;