Bug 1046297: change frequency of about:home snippets requests to once every 4 hours, r=mak
authorGavin Sharp <gavin@gavinsharp.com>
Wed, 21 Jan 2015 13:09:44 -0800
changeset 225002 c8019c6eda14f9866e6db2987504e499daa19400
parent 225001 1385f99516d5ce9db40eb061036859a58e6cbd36
child 225003 2d8d90eaab6e8974047b4b0da583e894c4b5c41b
push idunknown
push userunknown
push dateunknown
reviewersmak
bugs1046297
milestone38.0a1
Bug 1046297: change frequency of about:home snippets requests to once every 4 hours, r=mak
browser/base/content/abouthome/aboutHome.js
--- a/browser/base/content/abouthome/aboutHome.js
+++ b/browser/base/content/abouthome/aboutHome.js
@@ -141,17 +141,17 @@ 0P/y6/7299z+H4QrdGsoib8JAAAAAElFTkSuQmCC
 //   * add a <span/> for it in aboutHome.xhtml
 //   * add an entry here in the proper ordering (based on spans)
 // The <a/> part of the snippet will be linked to the corresponding url.
 const DEFAULT_SNIPPETS_URLS = [
   "https://www.mozilla.org/firefox/features/?utm_source=snippet&utm_medium=snippet&utm_campaign=default+feature+snippet"
 , "https://addons.mozilla.org/firefox/?utm_source=snippet&utm_medium=snippet&utm_campaign=addons"
 ];
 
-const SNIPPETS_UPDATE_INTERVAL_MS = 86400000; // 1 Day.
+const SNIPPETS_UPDATE_INTERVAL_MS = 14400000; // 4 hours.
 
 // IndexedDB storage constants.
 const DATABASE_NAME = "abouthome";
 const DATABASE_VERSION = 1;
 const DATABASE_STORAGE = "persistent";
 const SNIPPETS_OBJECTSTORE_NAME = "snippets";
 
 // This global tracks if the page has been set up before, to prevent double inits