Change Redis cache
This commit is contained in:
parent
e10c6f5c46
commit
a788a65ba6
|
@ -60,11 +60,11 @@ INSTALLED_APPS = [
|
|||
# Performance optimisations
|
||||
CACHES = {
|
||||
"default": {
|
||||
"BACKEND": "django.core.cache.backends.redis.RedisCache",
|
||||
"BACKEND": "django_redis.cache.RedisCache",
|
||||
"LOCATION": "unix:///var/run/socks/redis.sock",
|
||||
"OPTIONS": {
|
||||
"db": "10",
|
||||
"parser_class": "redis.connection.HiredisParser",
|
||||
# "parser_class": "django_redis.cache.RedisCache",
|
||||
"pool_class": "redis.BlockingConnectionPool",
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import os
|
||||
|
||||
import stripe
|
||||
from django.conf import settings
|
||||
|
||||
|
|
|
@ -30,4 +30,6 @@ git+https://git.zm.is/XF/django-crud-mixins
|
|||
redis
|
||||
hiredis
|
||||
django-cachalot
|
||||
django_redis
|
||||
# Billing
|
||||
lago-python-client
|
||||
|
|
Loading…
Reference in New Issue