diff --git a/lib/thirdparty/Github.class.php b/lib/thirdparty/Github.class.php index 8c262426..bc43d369 100644 --- a/lib/thirdparty/Github.class.php +++ b/lib/thirdparty/Github.class.php @@ -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)