mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
reduce github cache length
This commit is contained in:
parent
00eaec430c
commit
ff4c1cef39
1 changed files with 2 additions and 1 deletions
3
lib/thirdparty/Github.class.php
vendored
3
lib/thirdparty/Github.class.php
vendored
|
@ -33,8 +33,9 @@ class Github
|
|||
|
||||
public static function get($endpoint, $cache = true)
|
||||
{
|
||||
$twoHoursInSeconds = 7200;
|
||||
return CurlWithCache::get('https://api.github.com' . $endpoint, [],
|
||||
['user_agent' => 'LBRY', 'json_response' => true, 'cache' => $cache]);
|
||||
['user_agent' => 'LBRY', 'json_response' => true, 'cache' => $cache === true ? $twoHoursInSeconds : $cache]);
|
||||
}
|
||||
|
||||
public static function listRoadmapChangesets($cache = true)
|
||||
|
|
Loading…
Add table
Reference in a new issue