Software / code / prosody-modules
Comparison
mod_presence_cache/README.markdown @ 2147:ed2bb50d4f91
mod_presence_cache: Switch to using util.cache for limiting size of cache
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 01 Apr 2016 15:18:56 +0200 |
| parent | 2146:39d958f4a0c3 |
comparison
equal
deleted
inserted
replaced
| 2146:39d958f4a0c3 | 2147:ed2bb50d4f91 |
|---|---|
| 1 --- | 1 --- |
| 2 summary: Cache presence incoming presence | 2 summary: Cache presence from remote users |
| 3 ... | 3 ... |
| 4 | 4 |
| 5 Introduction | 5 Introduction |
| 6 ============ | 6 ============ |
| 7 | 7 |
| 8 This module stores presence from users contact even when they are | 8 This module stores a timestamp of the latest presence received from |
| 9 offline, so that the client can see who is online faster when they sign | 9 users contacts so that the client can see who is online faster when they |
| 10 in, and won't have to wait for remote servers to reply. | 10 sign in, and won't have to wait for remote servers to reply. |
| 11 | |
| 12 Note that in its current form, the number of presence stanzas sent to a | |
| 13 client is doubled, as the client would get both the cached stanzas and | |
| 14 replies to presence probes. Also see [mod\_throttle\_presence]. | |
| 15 | 11 |
| 16 Configuration | 12 Configuration |
| 17 ============= | 13 ============= |
| 18 | 14 |
| 19 Just enable the module. | 15 Just enable the module. |
| 24 } | 20 } |
| 25 | 21 |
| 26 Advanced configuration | 22 Advanced configuration |
| 27 ====================== | 23 ====================== |
| 28 | 24 |
| 25 The size of the cache is tuneable: | |
| 29 | 26 |
| 27 presence_cache_size = 99 | |
| 30 | 28 |
| 29 Compatibility | |
| 30 ============= | |
| 31 | 31 |
| 32 TODO | 32 Requires 0.10 or later |
| 33 ==== | |
| 34 | |
| 35 - Deduplication, i.e don's send stanzas that are identical to the last | |
| 36 seen. | |
| 37 - Cache invalidation or expiry, eg if a remote server goes down or is | |
| 38 gone a long time. | |
| 39 - Sending probes at some interval to keep the cache reasonably fresh. | |
| 40 | |
| 41 |