mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix use_cache/1 callback
This commit is contained in:
parent
061d5f2380
commit
3f13396d73
@ -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) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user