Mercurial > prosody-modules
comparison mod_http_muc_log/README.markdown @ 3581:dbc67120097f
mod_http_muc_log: Document optimization for storage modules lacking :dates API
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 05 May 2019 14:05:00 +0200 |
parents | 89a3f049689f |
children | 444e2306c99a |
comparison
equal
deleted
inserted
replaced
3580:907ccda3f0d2 | 3581:dbc67120097f |
---|---|
48 | 48 |
49 The module uses [util.interpolation][doc:developers:util:interpolation] | 49 The module uses [util.interpolation][doc:developers:util:interpolation] |
50 for rendering templates, with the pattern `"%b{}"` and HTML / XML | 50 for rendering templates, with the pattern `"%b{}"` and HTML / XML |
51 escaping enabled. | 51 escaping enabled. |
52 | 52 |
53 ## Calendar optimization | |
54 | |
55 The calendar view relies on an optional part of the Prosody archive | |
56 storage API that provides a list of every valid date. If this is | |
57 unavailable then the module queries for the first and the last messages | |
58 and assumes that every date between those is valid. This may lead to | |
59 many empty pages in case the logs are sparse. | |
60 | |
61 This optimization can be turned off, to get a more accurate calendar | |
62 view, but it will likely be very slow. | |
63 | |
64 ``` {.lua} | |
65 http_muc_log_lazy_calendar = false | |
66 ``` | |
67 | |
53 Compatibility | 68 Compatibility |
54 ============= | 69 ============= |
55 | 70 |
56 Requires Prosody 0.10 or above and a storage backend with support for | 71 Requires Prosody 0.10 or above and a storage backend with support for |
57 stanza archives. See [mod\_storage\_muc\_log] for using legacy data from | 72 stanza archives. See [mod\_storage\_muc\_log] for using legacy data from |