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
1 changed files with 2 additions and 0 deletions

View File

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