mirror of https://github.com/zulip/zulip.git
Configure the app to use memcached
Fixes #54. (imported from commit c94f5b133143510289d410252340b9a4ab26709c)
This commit is contained in:
parent
b609840e82
commit
545c1494f0
|
@ -148,16 +148,21 @@ INSTALLED_APPS = (
|
|||
)
|
||||
|
||||
# Caching
|
||||
CACHES = {
|
||||
'default': {
|
||||
if deployed:
|
||||
CACHES = { 'default': {
|
||||
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
|
||||
'LOCATION': '127.0.0.1:11211',
|
||||
'TIMEOUT': 3600
|
||||
} }
|
||||
else:
|
||||
CACHES = { 'default': {
|
||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||
'LOCATION': 'humbug-default-local-cache',
|
||||
'TIMEOUT': 3600,
|
||||
'OPTIONS': {
|
||||
'MAX_ENTRIES': 100000
|
||||
}
|
||||
}
|
||||
}
|
||||
} }
|
||||
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
|
|
Loading…
Reference in New Issue