Configure the app to use memcached

Fixes #54.

(imported from commit c94f5b133143510289d410252340b9a4ab26709c)
This commit is contained in:
Keegan McAllister 2012-11-24 19:18:04 -05:00
parent b609840e82
commit 545c1494f0
1 changed files with 9 additions and 4 deletions

View File

@ -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,