2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 20:15:44 +00:00

Add redis cache to postgres testcase

This commit is contained in:
Nigel
2021-11-02 16:07:29 -06:00
parent e8c2d4da10
commit eecd477a34
2 changed files with 9 additions and 1 deletions

View File

@ -541,7 +541,9 @@ DATABASES = {
_cache_config = CONFIG.get("cache", {})
_cache_host = _cache_config.get("host", os.getenv("INVENTREE_CACHE_HOST"))
_cache_port = _cache_config.get("port", os.getenv("INVENTREE_CACHE_PORT"))
_cache_port = _cache_config.get(
"port", os.getenv("INVENTREE_CACHE_PORT", "6379")
)
if _cache_host:
# We are going to rely upon a possibly non-localhost for our cache,