Change the cache serialiser from pickle to MessagePack for way better performance
This commit is contained in:
parent
0f95cfa0bc
commit
01d5745fa7
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue