# HG changeset patch # User Kim Alvefur # Date 1557057900 -7200 # Node ID dbc67120097f09aea3d61fcd497d6bb4fd31269d # Parent 907ccda3f0d2bc9e215df9a0500ef39ef6621472 mod_http_muc_log: Document optimization for storage modules lacking :dates API diff -r 907ccda3f0d2 -r dbc67120097f mod_http_muc_log/README.markdown --- a/mod_http_muc_log/README.markdown Sun May 05 13:00:25 2019 +0200 +++ b/mod_http_muc_log/README.markdown Sun May 05 14:05:00 2019 +0200 @@ -50,6 +50,21 @@ for rendering templates, with the pattern `"%b{}"` and HTML / XML escaping enabled. +## Calendar optimization + +The calendar view relies on an optional part of the Prosody archive +storage API that provides a list of every valid date. If this is +unavailable then the module queries for the first and the last messages +and assumes that every date between those is valid. This may lead to +many empty pages in case the logs are sparse. + +This optimization can be turned off, to get a more accurate calendar +view, but it will likely be very slow. + +``` {.lua} +http_muc_log_lazy_calendar = false +``` + Compatibility =============