mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Reconfigure cache in mod_shared_roster when options change
This commit is contained in:
parent
b3374e1f99
commit
c8afb5ceb6
@ -136,11 +136,13 @@ stop(Host) ->
|
||||
reload(Host, NewOpts, OldOpts) ->
|
||||
NewMod = gen_mod:db_mod(NewOpts, ?MODULE),
|
||||
OldMod = gen_mod:db_mod(OldOpts, ?MODULE),
|
||||
if NewMod /= OldMod ->
|
||||
if
|
||||
NewMod /= OldMod ->
|
||||
NewMod:init(Host, NewOpts);
|
||||
true ->
|
||||
ok
|
||||
end,
|
||||
init_cache(NewMod, Host, NewOpts),
|
||||
ok.
|
||||
|
||||
depends(_Host, _Opts) ->
|
||||
|
Loading…
Reference in New Issue
Block a user