Skip to content

Commit c76ebcf

Browse files
authored
Update HttpClient.php
1 parent bf9d35e commit c76ebcf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Gitlab/HttpClient/HttpClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ public function request($path, array $parameters = array(), $httpMethod = 'GET',
186186
};
187187

188188
if(\Illuminate\Support\Facades\Request::header('Cache-Control') === 'no-cache') {
189-
return $getData();
189+
$_data = $getData();
190+
\Cache::put($ckey, $_data, 120);
191+
return $_data;
190192
}
191193

192194
return \Cache::remember($ckey, 120, $getData);

0 commit comments

Comments
 (0)