]> granicus.if.org Git - ejabberd/commitdiff
Apply new cache options on mod_stream_mgmt reload
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Fri, 30 Nov 2018 15:12:27 +0000 (18:12 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Fri, 30 Nov 2018 15:12:27 +0000 (18:12 +0300)
src/mod_stream_mgmt.erl

index 546c45a69c35c870174b4aa2754503e77ec17a7b..5adeaf8c296cfcdb8ed41bea52ffe14f04374a19 100644 (file)
@@ -97,7 +97,8 @@ stop(Host) ->
     ejabberd_hooks:delete(c2s_closed, Host, ?MODULE, c2s_closed, 50),
     ejabberd_hooks:delete(c2s_terminated, Host, ?MODULE, c2s_terminated, 50).
 
-reload(_Host, _NewOpts, _OldOpts) ->
+reload(_Host, NewOpts, _OldOpts) ->
+    init_cache(NewOpts),
     ?WARNING_MSG("module ~s is reloaded, but new configuration will take "
                 "effect for newly created client connections only", [?MODULE]).