From 8bf623effd2b2883e4ebda5866ea522a237ef7ff Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Fri, 26 Jun 2020 18:41:10 -0400 Subject: [PATCH] Upgrading redis cache. --- config/requirements.txt | 2 +- settings.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/requirements.txt b/config/requirements.txt index ced2d247b..6411e47a6 100755 --- a/config/requirements.txt +++ b/config/requirements.txt @@ -14,7 +14,7 @@ django-mailgun==0.9.1 django-oauth-toolkit==0.10.0 django-qurl==0.1.1 django-paypal==1.0 -django-redis-cache==1.5.5 +django-redis-cache==1.7.1 django-redis-sessions==0.6.1 django-ses==0.7.1 django-subdomains==2.1.0 diff --git a/settings.py b/settings.py index e6f56470a..bf715cdd0 100644 --- a/settings.py +++ b/settings.py @@ -717,7 +717,8 @@ CACHES = { 'LOCATION': '%s:6379' % REDIS['host'], 'OPTIONS': { 'DB': 6, - 'PARSER_CLASS': 'redis.connection.HiredisParser' + 'PARSER_CLASS': 'redis.connection.HiredisParser', + 'SERIALIZER_CLASS': 'redis_cache.serializers.PickleSerializer' }, }, }