mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding memcached.
This commit is contained in:
parent
3e89f1dc08
commit
ed2f7699da
1 changed files with 5 additions and 3 deletions
|
@ -72,7 +72,7 @@ if PRODUCTION:
|
|||
# Example: "/Users/media/media.lawrence.com/"
|
||||
MEDIA_URL = 'http://www.newsblur.com/media/'
|
||||
DEBUG = False
|
||||
CACHE_BACKEND = 'file:///var/tmp/django_cache'
|
||||
CACHE_BACKEND = 'memcached://127.0.0.1:11211'
|
||||
logging.basicConfig(level=logging.INFO,
|
||||
format='%(asctime)s %(levelname)s %(message)s',
|
||||
filename=LOG_FILE,
|
||||
|
@ -107,7 +107,8 @@ elif DEV_SERVER1:
|
|||
# Example: "/Users/media/media.lawrence.com/"
|
||||
MEDIA_URL = '/media/'
|
||||
DEBUG = True
|
||||
CACHE_BACKEND = 'locmem:///'
|
||||
# CACHE_BACKEND = 'locmem:///'
|
||||
CACHE_BACKEND = 'memcached://127.0.0.1:11211'
|
||||
logging.basicConfig(level=logging.DEBUG,
|
||||
format='%(asctime)s %(levelname)s %(message)s',
|
||||
filename=LOG_FILE,
|
||||
|
@ -125,7 +126,8 @@ elif DEV_SERVER2:
|
|||
MEDIA_URL = '/media/'
|
||||
DEBUG = True
|
||||
# CACHE_BACKEND = 'locmem:///'
|
||||
CACHE_BACKEND = 'dummy:///'
|
||||
# CACHE_BACKEND = 'dummy:///'
|
||||
CACHE_BACKEND = 'memcached://127.0.0.1:11211'
|
||||
logging.basicConfig(level=logging.DEBUG,
|
||||
format='%(asctime)s %(levelname)s %(message)s',
|
||||
filename=LOG_FILE,
|
||||
|
|
Loading…
Add table
Reference in a new issue