reduce chance of collision on cache namespace

This commit is contained in:
chris meyers 2018-05-17 13:35:35 -04:00
parent 178d94a421
commit 40ef30a914

View File

@ -10,6 +10,7 @@ import copy
import sys
import traceback
import random
import uuid
# Centos-7 doesn't include the svg mime type
# /usr/lib64/python/mimetypes.py
@ -26,7 +27,7 @@ if "pytest" in sys.modules:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'unique-{}'.format(random.randint(0, sys.maxint)),
'LOCATION': 'unique-{}'.format(str(uuid.uuid4())),
},
}