mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 22:37:41 -02:30
reduce chance of collision on cache namespace
This commit is contained in:
@@ -10,6 +10,7 @@ import copy
|
|||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import random
|
import random
|
||||||
|
import uuid
|
||||||
|
|
||||||
# Centos-7 doesn't include the svg mime type
|
# Centos-7 doesn't include the svg mime type
|
||||||
# /usr/lib64/python/mimetypes.py
|
# /usr/lib64/python/mimetypes.py
|
||||||
@@ -26,7 +27,7 @@ if "pytest" in sys.modules:
|
|||||||
CACHES = {
|
CACHES = {
|
||||||
'default': {
|
'default': {
|
||||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||||
'LOCATION': 'unique-{}'.format(random.randint(0, sys.maxint)),
|
'LOCATION': 'unique-{}'.format(str(uuid.uuid4())),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user