cache: allow controlling lock_auto_renewal via .ini config

This commit is contained in:
RhodeCode Admin 2021-07-22 11:47:42 +02:00
parent 42f9103f64
commit fe98575ce6
2 changed files with 16 additions and 8 deletions

View file

@ -391,6 +391,8 @@ rc_cache.cache_perms.expiration_time = 300
; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
#rc_cache.cache_perms.arguments.distributed_lock = true
; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
#rc_cache.cache_perms.arguments.lock_auto_renewal = true
; ***************************************************
; `cache_repo` cache for file tree, Readme, RSS FEEDS
@ -414,6 +416,8 @@ rc_cache.cache_repo.expiration_time = 2592000
; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
#rc_cache.cache_repo.arguments.distributed_lock = true
; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
#rc_cache.cache_repo.arguments.lock_auto_renewal = true
; ##############
; BEAKER SESSION