From 712525d6e9dacdb241e0a17106de4ac4321bbff4 Mon Sep 17 00:00:00 2001 From: "smarcet@gmail.com" Date: Wed, 9 Oct 2024 13:53:41 -0300 Subject: [PATCH] fix: add cache region for GET summit by id v2 --- routes/api_v2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/api_v2.php b/routes/api_v2.php index 735e7118c..e16eb5454 100644 --- a/routes/api_v2.php +++ b/routes/api_v2.php @@ -13,7 +13,7 @@ **/ use Illuminate\Support\Facades\Route; - +use Illuminate\Support\Facades\Config; //OAuth2 Protected API V2 @@ -22,7 +22,7 @@ Route::group(['prefix' => '{id}'], function () { - Route::get('', ['uses' => 'OAuth2SummitApiController@getSummit'])->where('id', 'current|[0-9]+'); + Route::get('', ['middleware' => 'cache:' . Config::get('cache_api_response.get_summit_response_lifetime', 1200).',SUMMITS,id', 'uses' => 'OAuth2SummitApiController@getSummit'])->where('id', 'current|[0-9]+'); // events Route::group(['prefix' => 'events'], function () {