Bug 1395645: Increase Pocket Stories refresh to once an hour. r=liuche
authorMichael Comella <michael.l.comella@gmail.com>
Fri, 08 Sep 2017 14:22:21 -0700
changeset 429319 beb76be8dc465040490e2af053b2651b42b58a5c
parent 429318 442345c31f98ba4c7b0d76dc7022fd51d0f34219
child 429320 bbed5063d5a1ead431993901a9cbdef9f86c4a53
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersliuche
bugs1395645
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1395645: Increase Pocket Stories refresh to once an hour. r=liuche I haven't tested this because it's very time-consuming for such a simple change. MozReview-Commit-ID: 7f4LLlBbrLw
mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/topstories/PocketStoriesLoader.java
--- a/mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/topstories/PocketStoriesLoader.java
+++ b/mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/topstories/PocketStoriesLoader.java
@@ -60,17 +60,17 @@ public class PocketStoriesLoader extends
     // Pocket API params and defaults
     private static final String GLOBAL_ENDPOINT = "https://getpocket.cdn.mozilla.net/v3/firefox/global-recs";
     private static final String PARAM_APIKEY = "consumer_key";
     private static final String APIKEY = AppConstants.MOZ_POCKET_API_KEY;
     private static final String PARAM_COUNT = "count";
     private static final int DEFAULT_COUNT = 3;
     private static final String PARAM_LOCALE = "locale_lang";
 
-    private static final long REFRESH_INTERVAL_MILLIS = TimeUnit.HOURS.toMillis(3);
+    private static final long REFRESH_INTERVAL_MILLIS = TimeUnit.HOURS.toMillis(1);
 
     private static final int BUFFER_SIZE = 2048;
     private static final int CONNECT_TIMEOUT = (int) TimeUnit.SECONDS.toMillis(15);
     private static final int READ_TIMEOUT = (int) TimeUnit.SECONDS.toMillis(15);
 
     private String localeLang;
     private final SharedPreferences sharedPreferences;