diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-24 15:58:38 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-24 15:58:38 +0000 |
commit | 69188f06098f8ced45217b7891abf8b799ffb636 (patch) | |
tree | a13175dee4347ff20a69464a8f58fb12565a5375 /src/libserver/cfg_rcl.c | |
parent | 06f9df52ebfe23b8017e9fd07750a849656328a9 (diff) | |
download | rspamd-69188f06098f8ced45217b7891abf8b799ffb636.tar.gz rspamd-69188f06098f8ced45217b7891abf8b799ffb636.zip |
[Minor] Add cache_reload option to specify timeout
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r-- | src/libserver/cfg_rcl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 8a72a8dd2..79e23588a 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1853,6 +1853,12 @@ rspamd_rcl_config_init (struct rspamd_config *cfg) G_STRUCT_OFFSET (struct rspamd_config, cache_filename), RSPAMD_CL_FLAG_STRING_PATH, "Path to the cache file"); + rspamd_rcl_add_default_handler (sub, + "cache_reload", + rspamd_rcl_parse_struct_time, + G_STRUCT_OFFSET (struct rspamd_config, cache_reload_time), + RSPAMD_CL_FLAG_TIME_FLOAT, + "How often cache reload should be performed"); /* Old DNS configuration */ rspamd_rcl_add_default_handler (sub, "dns_nameserver", |