1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

change default cache times

This commit is contained in:
Peter Bieringer 2024-12-31 16:13:05 +01:00
parent c0acbd4402
commit 79ba07e16b
3 changed files with 11 additions and 7 deletions

View file

@ -814,7 +814,8 @@ Default: `none`
##### cache_logins ##### cache_logins
Cache successful/failed logins until expiration time Cache successful/failed logins until expiration time. Enable this to avoid
overload of authentication backends.
Default: `false` Default: `false`
@ -822,13 +823,13 @@ Default: `false`
Expiration time of caching successful logins in seconds Expiration time of caching successful logins in seconds
Default: `5` Default: `15`
##### cache_failed_logins_expiry ##### cache_failed_logins_expiry
Expiration time of caching failed logins in seconds Expiration time of caching failed logins in seconds
Default: `60` Default: `90`
##### htpasswd_filename ##### htpasswd_filename

7
config
View file

@ -62,11 +62,14 @@
# Value: none | htpasswd | remote_user | http_x_remote_user | ldap | denyall # Value: none | htpasswd | remote_user | http_x_remote_user | ldap | denyall
#type = none #type = none
# Cache successful logins for until expiration time # Cache logins for until expiration time
#cache_logins = false #cache_logins = false
# Expiration time for caching successful logins in seconds # Expiration time for caching successful logins in seconds
#cache_logins_expiry = 5 #cache_successful_logins_expiry = 15
## Expiration time of caching failed logins in seconds
#cache_failed_logins_expiry = 90
# URI to the LDAP server # URI to the LDAP server
#ldap_uri = ldap://localhost #ldap_uri = ldap://localhost

View file

@ -188,11 +188,11 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([
"help": "cache successful/failed logins for until expiration time", "help": "cache successful/failed logins for until expiration time",
"type": bool}), "type": bool}),
("cache_successful_logins_expiry", { ("cache_successful_logins_expiry", {
"value": "5", "value": "15",
"help": "expiration time for caching successful logins in seconds", "help": "expiration time for caching successful logins in seconds",
"type": int}), "type": int}),
("cache_failed_logins_expiry", { ("cache_failed_logins_expiry", {
"value": "60", "value": "90",
"help": "expiration time for caching failed logins in seconds", "help": "expiration time for caching failed logins in seconds",
"type": int}), "type": int}),
("htpasswd_filename", { ("htpasswd_filename", {