mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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) ->
|
reload(Host, NewOpts, OldOpts) ->
|
||||||
NewMod = gen_mod:db_mod(NewOpts, ?MODULE),
|
NewMod = gen_mod:db_mod(NewOpts, ?MODULE),
|
||||||
OldMod = gen_mod:db_mod(OldOpts, ?MODULE),
|
OldMod = gen_mod:db_mod(OldOpts, ?MODULE),
|
||||||
if NewMod /= OldMod ->
|
if
|
||||||
|
NewMod /= OldMod ->
|
||||||
NewMod:init(Host, NewOpts);
|
NewMod:init(Host, NewOpts);
|
||||||
true ->
|
true ->
|
||||||
ok
|
ok
|
||||||
end,
|
end,
|
||||||
|
init_cache(NewMod, Host, NewOpts),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user