25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Fix use_cache/1 callback

This commit is contained in:
Evgeniy Khramtsov 2017-05-15 08:58:37 +03:00
parent 061d5f2380
commit 3f13396d73

View File

@ -77,10 +77,14 @@ update_reg_users_counter_table(Server) ->
end, end,
mnesia:sync_dirty(F). mnesia:sync_dirty(F).
use_cache(_) -> use_cache(Host) ->
case mnesia:table_info(passwd, storage_type) of case mnesia:table_info(passwd, storage_type) of
disc_only_copies -> true; disc_only_copies ->
_ -> false ejabberd_config:get_option(
{auth_use_cache, Host},
ejabberd_config:use_cache(Host));
_ ->
false
end. end.
plain_password_required(Server) -> plain_password_required(Server) ->