]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Save symcache on exit
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Apr 2021 15:26:50 +0000 (16:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Apr 2021 15:26:50 +0000 (16:26 +0100)
src/rspamd.c

index 4f035324d45b194c12632fc673dc3f8005e71310..1d8eeaee6d79086d5eed42a4dd3d9a4781917f43 100644 (file)
@@ -1621,6 +1621,10 @@ main (gint argc, gchar **argv, gchar **env)
                        rspamd_main->cfg->history_file);
        }
 
+       if (rspamd_main->cfg->cache) {
+               rspamd_symcache_save(rspamd_main->cfg->cache);
+       }
+
        msg_info_main ("terminating...");
 
        REF_RELEASE (rspamd_main->cfg);