Software /
code /
prosody-modules
Diff
mod_pubsub_serverinfo/README.markdown @ 5828:55b99f593c3a
mod_pubsub_serverinfo: Disco/info cache TTL should be configurable
This module caches the disco/info results of remote domains. This commit introduces a new configuration option that allows an admin to configure the cache expiry duration.
author | Guus der Kinderen <guus.der.kinderen@gmail.com> |
---|---|
date | Thu, 04 Jan 2024 12:05:51 +0100 |
parent | 5826:f55e65315ba0 |
child | 5829:d4612e7f6724 |
line wrap: on
line diff
--- a/mod_pubsub_serverinfo/README.markdown Thu Jan 04 11:59:35 2024 +0100 +++ b/mod_pubsub_serverinfo/README.markdown Thu Jan 04 12:05:51 2024 +0100 @@ -41,3 +41,9 @@ is 300 seconds (5 minutes). To change this simply put in the config: pubsub_serverinfo_publication_interval = 180 -- or any other number of seconds + +To detect if remote domains allow their domain name to be included in the data that this module publishes, this module will perform a service +discovery request to each remote domain. To prevent a continuous flood of disco/info requests, the response to these requests is cached. By default, +a cached value will remain in cache for one hour. This duration can be modified by adding this configuration option: + + pubsub_serverinfo_cache_ttl = 1800 -- or any other number of seconds