From ff4c1cef3922c4857d20782a4f2a27ce3f1c5861 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Wed, 2 Nov 2016 21:54:12 -0400 Subject: [PATCH] reduce github cache length --- lib/thirdparty/Github.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)