diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-28 16:40:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-28 16:40:29 +0100 |
commit | 4e0dec94f6da1757a1e3b320bb98ba8f0bb36728 (patch) | |
tree | 362ca74b55c71d3853285fffff6de2a5a8e892cc /src/controller.c | |
parent | 126ed2c6e94e1caee3365408d15d200332027374 (diff) | |
download | rspamd-4e0dec94f6da1757a1e3b320bb98ba8f0bb36728.tar.gz rspamd-4e0dec94f6da1757a1e3b320bb98ba8f0bb36728.zip |
Implement cache resorting.
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/controller.c b/src/controller.c index 8c3b49091..73a563340 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1594,8 +1594,6 @@ rspamd_controller_handle_counters ( { struct rspamd_controller_session *session = conn_ent->ud; ucl_object_t *top; - GList *cur; - struct cache_item *item; struct symbols_cache *cache; if (!rspamd_controller_check_password (conn_ent, session, msg, FALSE)) { @@ -1932,6 +1930,7 @@ start_controller_worker (struct rspamd_worker *worker) rspamd_upstreams_library_config (worker->srv->cfg); /* Maps events */ rspamd_map_watch (worker->srv->cfg, ctx->ev_base); + rspamd_symbols_cache_start_refresh (worker->srv->cfg->cache, ctx->ev_base); event_base_loop (ctx->ev_base, 0); |