Change the cache serialiser from pickle to MessagePack for way better performance

This commit is contained in:
Danielle McLean 2018-04-24 12:46:36 +10:00
parent 0f95cfa0bc
commit 01d5745fa7
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240

View file

@ -143,7 +143,9 @@ CACHES = {
'KEY_PREFIX': 'lemoncurry', 'KEY_PREFIX': 'lemoncurry',
'OPTIONS': { 'OPTIONS': {
'PARSER_CLASS': 'redis.connection.HiredisParser', 'PARSER_CLASS': 'redis.connection.HiredisParser',
'SERIALIZER': 'django_redis.serializers.msgpack.MSGPackSerializer',
}, },
'VERSION': 2,
} }
} }