From 08244bb8c5a373da05df1ea4746f7f53402ad8f0 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 13 Aug 2017 13:47:04 +0300 Subject: [PATCH] Increase API limit for the mobile apps --- app/Http/Middleware/ApiCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/ApiCheck.php b/app/Http/Middleware/ApiCheck.php index 80554c977a..2638323ee5 100644 --- a/app/Http/Middleware/ApiCheck.php +++ b/app/Http/Middleware/ApiCheck.php @@ -77,7 +77,7 @@ class ApiCheck // http://stackoverflow.com/questions/1375501/how-do-i-throttle-my-sites-api-users $hour = 60 * 60; - $hour_limit = 100; // users are limited to 100 requests/hour + $hour_limit = $hasApiSecret ? 1000 : 100; // users are limited to 100 requests/hour (or 1000 for the mobile apps) $hour_throttle = Cache::get("hour_throttle:{$key}", null); $last_api_request = Cache::get("last_api_request:{$key}", 0); $last_api_diff = time() - $last_api_request;