aboutsummaryrefslogtreecommitdiff
path: root/src/mod_mam.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2018-11-28 11:25:04 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2018-11-28 11:25:16 +0100
commit0b31aa490ba19b85c164fcd463131979ff2ac1c7 (patch)
treef71bac978428ea0d36b949c249e9992c4af18fec /src/mod_mam.erl
parentAdd specific Var names to CAPTCHA fallback form fields (#2672) (diff)
Add xml compression to sql backend of mam
Diffstat (limited to 'src/mod_mam.erl')
-rw-r--r--src/mod_mam.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_mam.erl b/src/mod_mam.erl
index 9689a93a2..58108fb1e 100644
--- a/src/mod_mam.erl
+++ b/src/mod_mam.erl
@@ -1172,7 +1172,7 @@ mod_opt_type(O) when O == cache_life_time; O == cache_size ->
fun (I) when is_integer(I), I > 0 -> I;
(infinity) -> infinity
end;
-mod_opt_type(O) when O == use_cache; O == cache_missed ->
+mod_opt_type(O) when O == use_cache; O == cache_missed; O == compress_xml ->
fun (B) when is_boolean(B) -> B end;
mod_opt_type(db_type) -> fun(T) -> ejabberd_config:v_db(?MODULE, T) end;
mod_opt_type(default) ->
@@ -1187,6 +1187,7 @@ mod_options(Host) ->
[{assume_mam_usage, false},
{default, never},
{request_activates_archiving, false},
+ {compress_xml, false},
{db_type, ejabberd_config:default_db(Host, ?MODULE)},
{use_cache, ejabberd_config:use_cache(Host)},
{cache_size, ejabberd_config:cache_size(Host)},