Switch from memcached to redis
This commit is contained in:
parent
c3825efe26
commit
d0abc616bf
|
@ -120,12 +120,17 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|||
|
||||
# cache
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',
|
||||
'LOCATION': '127.0.0.1:11211',
|
||||
"default": {
|
||||
"BACKEND": "django_redis.cache.RedisCache",
|
||||
"LOCATION": "redis://127.0.0.1:6379/1",
|
||||
"OPTIONS": {
|
||||
"CLIENT_CLASS": "django_redis.client.DefaultClient"
|
||||
},
|
||||
"KEY_PREFIX": "borgweb"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# security
|
||||
SESSION_COOKIE_SECURE=True
|
||||
SECURE_SSL_REDIRECT=True
|
||||
|
|
|
@ -35,7 +35,7 @@ print_action "Installing pip packages, this may take a while..."
|
|||
|
||||
# install required pip packages
|
||||
yes | python -m pip install --upgrade wheel
|
||||
yes | python -m pip install django gunicorn django-libsass django-compressor django-axes pymemcache
|
||||
yes | python -m pip install django gunicorn django-libsass django-compressor django-axes django-redis
|
||||
|
||||
print_action "Setting up static files and database"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user