summaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 8486a029f..7a5da9807 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -888,6 +888,11 @@ rspamd_config_post_load (struct rspamd_config *cfg,
/* Init re cache */
rspamd_re_cache_init (cfg->re_cache, cfg);
+
+ /* Try load Hypersan */
+ rspamd_re_cache_load_hyperscan (cfg->re_cache,
+ cfg->hs_cache_dir ? cfg->hs_cache_dir : RSPAMD_DBDIR "/",
+ true);
}
if (opts & RSPAMD_CONFIG_INIT_LIBS) {