view mod_presence_cache/README.markdown @ 2146:39d958f4a0c3

mod_presence_cache: Remove caching of full presence
author Kim Alvefur <>
date Fri, 01 Apr 2016 15:15:56 +0200
parents 65beed3ac500
children ed2bb50d4f91
line wrap: on
line source

summary: Cache presence incoming presence


This module stores presence from users contact even when they are
offline, so that the client can see who is online faster when they sign
in, and won't have to wait for remote servers to reply.

Note that in its current form, the number of presence stanzas sent to a
client is doubled, as the client would get both the cached stanzas and
replies to presence probes. Also see [mod\_throttle\_presence].


Just enable the module.

    modules_enabled = {
        -- more modules

Advanced configuration


-   Deduplication, i.e don's send stanzas that are identical to the last
-   Cache invalidation or expiry, eg if a remote server goes down or is
    gone a long time.
-   Sending probes at some interval to keep the cache reasonably fresh.