瀏覽代碼

HUE-7915 [assist] Increase the frontend cache TTL to 10 days

Johan Ahlen 7 年之前
父節點
當前提交
d784df1eda

+ 4 - 4
desktop/conf.dist/hue.ini

@@ -294,8 +294,8 @@
     ## login_splash_html=<h4>GetHue.com</h4><br/><br/>WARNING: You have accessed a computer managed by GetHue. You are required to have authorization from GetHue before you proceed.
 
     # Cache timeout in milliseconds for the assist, autocomplete, etc.
-    # defaults to 86400000 (1 day), set to 0 to disable caching
-    ## cacheable_ttl=86400000
+    # defaults to 10 days, set to 0 to disable caching
+    ## cacheable_ttl=864000000
 
     # SVG code to replace the default Hue logo in the top bar and sign in screen
     # e.g. <image xlink:href="/static/desktop/art/hue-logo-mini-white.png" x="0" y="0" height="40" width="160" />
@@ -1715,8 +1715,8 @@
     ## apply_sentry_permissions=False
 
     # Cache timeout in milliseconds for the Optimizer metadata used in assist, autocomplete, etc.
-    # Defaults to 1 week, set to 0 to disable caching.
-    ## cacheable_ttl=604800000
+    # Defaults to 10 days, set to 0 to disable caching.
+    ## cacheable_ttl=864000000
 
     # Automatically upload queries after their execution in order to improve recommendations.
     ## auto_upload_queries=true

+ 4 - 4
desktop/conf/pseudo-distributed.ini.tmpl

@@ -298,8 +298,8 @@
     ## login_splash_html=<h4>GetHue.com</h4><br/><br/>WARNING: You have accessed a computer managed by GetHue. You are required to have authorization from GetHue before you proceed.
 
     # Cache timeout in milliseconds for the assist, autocomplete, etc.
-    # defaults to 86400000 (1 day), set to 0 to disable caching
-    ## cacheable_ttl=86400000
+    # defaults to 10 days, set to 0 to disable caching
+    ## cacheable_ttl=864000000
 
     # SVG code to replace the default Hue logo in the top bar and sign in screen
     # e.g. <image xlink:href="/static/desktop/art/hue-logo-mini-white.png" x="0" y="0" height="40" width="160" />
@@ -1719,8 +1719,8 @@
     ## apply_sentry_permissions=False
 
     # Cache timeout in milliseconds for the Optimizer metadata used in assist, autocomplete, etc.
-    # Defaults to 1 week, set to 0 to disable caching.
-    ## cacheable_ttl=604800000
+    # Defaults to 10 days, set to 0 to disable caching.
+    ## cacheable_ttl=864000000
 
     # Automatically upload queries after their execution in order to improve recommendations.
     ## auto_upload_queries=true

+ 1 - 1
desktop/core/src/desktop/conf.py

@@ -850,7 +850,7 @@ CUSTOM = ConfigSection(
                    help=_("The login splash HTML code. This code will be placed in the login page, "
                         "useful for security warning messages.")),
     CACHEABLE_TTL=Config("cacheable_ttl",
-                   default=86400000,
+                   default=10 * 24 * 60 * 60 * 1000,
                    type=int,
                    help=_("The cache TTL in milliseconds for the assist/autocomplete/etc calls. Set to 0 it disables the cache.")),
     LOGO_SVG=Config("logo_svg",

+ 1 - 1
desktop/libs/metadata/src/metadata/conf.py

@@ -129,7 +129,7 @@ OPTIMIZER = ConfigSection(
       key='cacheable_ttl',
       type=int,
       help=_t('The cache TTL in milliseconds for the assist/autocomplete/etc calls. Set to 0 to disable the cache.'),
-      default=7 * 24 * 60 * 60 * 1000),
+      default=10 * 24 * 60 * 60 * 1000),
     AUTO_UPLOAD_QUERIES = Config(
       key="auto_upload_queries",
       help=_t("Automatically upload queries after their execution in order to improve recommendations."),