mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Reconfigure cache in mod_shared_roster when options change
This commit is contained in:
parent
b3374e1f99
commit
c8afb5ceb6
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue