Last active
December 31, 2015 08:09
-
-
Save s-wool/7958296 to your computer and use it in GitHub Desktop.
enable other cache backend in hue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -u -r rpmbuild.bak/SOURCES/hue-2.5.0-cdh4.4.0/desktop/conf/hue.ini rpmbuild/SOURCES/hue-2.5.0-cdh4.4.0/desktop/conf/hue.ini | |
--- rpmbuild.bak/SOURCES/hue-2.5.0-cdh4.4.0/desktop/conf/hue.ini 2013-09-04 12:36:56.000000000 +0900 | |
+++ rpmbuild/SOURCES/hue-2.5.0-cdh4.4.0/desktop/conf/hue.ini 2013-12-14 15:15:16.000000000 +0900 | |
@@ -178,6 +178,10 @@ | |
## password= | |
## name=desktop/desktop.db | |
+ [[cache]] | |
+ # backend=locmem:// | |
+ # key_prefix= | |
+ | |
# Configuration options for connecting to an external SMTP server | |
# ------------------------------------------------------------------------ | |
diff -u -r rpmbuild.bak/SOURCES/hue-2.5.0-cdh4.4.0/desktop/core/src/desktop/conf.py rpmbuild/SOURCES/hue-2.5.0-cdh4.4.0/desktop/core/src/desktop/conf.py | |
--- rpmbuild.bak/SOURCES/hue-2.5.0-cdh4.4.0/desktop/core/src/desktop/conf.py 2013-09-04 12:36:56.000000000 +0900 | |
+++ rpmbuild/SOURCES/hue-2.5.0-cdh4.4.0/desktop/core/src/desktop/conf.py 2013-12-14 15:13:00.000000000 +0900 | |
@@ -197,6 +197,25 @@ | |
) | |
) | |
+CACHE = ConfigSection( | |
+ key='cache', | |
+ help=_("""Configuration options for Cashe"""), | |
+ members=dict( | |
+ BACKEND=Config( | |
+ key='backend', | |
+ help=_('Cache backend setting. default locmem://'), | |
+ type=str, | |
+ default='locmem://', | |
+ ), | |
+ KEY_PREFIX=Config( | |
+ key='key_prefix', | |
+ help=_('Cache key prefix'), | |
+ type=str, | |
+ default='', | |
+ ), | |
+ ) | |
+) | |
+ | |
KERBEROS = ConfigSection( | |
key="kerberos", | |
help=_("""Configuration options for specifying Hue's Kerberos integration for | |
diff -u -r rpmbuild.bak/SOURCES/hue-2.5.0-cdh4.4.0/desktop/core/src/desktop/settings.py rpmbuild/SOURCES/hue-2.5.0-cdh4.4.0/desktop/core/src/desktop/settings.py | |
--- rpmbuild.bak/SOURCES/hue-2.5.0-cdh4.4.0/desktop/core/src/desktop/settings.py 2013-07-13 07:49:44.000000000 +0900 | |
+++ rpmbuild/SOURCES/hue-2.5.0-cdh4.4.0/desktop/core/src/desktop/settings.py 2013-12-14 15:16:33.000000000 +0900 | |
@@ -252,6 +252,9 @@ | |
'default': default_db | |
} | |
+CACHE_BACKEND = desktop.conf.CACHE.BACKEND.get() | |
+CACHE_MIDDLEWARE_KEY_PREFIX = desktop.conf.CACHE.KEY_PREFIX.get() | |
+ | |
TIME_ZONE = desktop.conf.TIME_ZONE.get() | |
# Desktop supports only one authentication backend. | |
AUTHENTICATION_BACKENDS = (desktop.conf.AUTH.BACKEND.get(),) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment