mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-25 01:03:07 +00:00
* Fix docs
* Adjust config template
* Tweak cache config code
(cherry picked from commit e57ee86c35)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
1 parent
b064a6ef8a
commit
eb28e25f14
3 files changed
+8
-6
No files matched your search
@@ -69,7 +69,7 @@ def is_global_cache_enabled() -> bool:
|
||||
return False
|
||||
|
||||
# Test if the cache is configured
|
||||
if not cache_host():
|
||||
if not host:
|
||||
logger.warning('Global cache is enabled, but no cache host is configured!')
|
||||
return False
|
||||
|
||||
|
||||
@@ -186,10 +186,10 @@ background:
|
||||
max_attempts: 5
|
||||
|
||||
# External cache configuration (refer to the documentation for full list of options)
|
||||
cache:
|
||||
enabled: false
|
||||
host: 'inventree-cache'
|
||||
port: 6379
|
||||
#cache:
|
||||
# enabled: false
|
||||
# host: 'inventree-cache'
|
||||
# port: 6379
|
||||
|
||||
# Login configuration
|
||||
login_confirm_days: 3
|
||||
|
||||
Reference in new issue
Block a user