reduce github cache length

This commit is contained in:
Jeremy Kauffman 2016-11-02 21:54:12 -04:00
parent 00eaec430c
commit ff4c1cef39

View file

@ -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)