Skip to content

Commit 42c62ec

Browse files
committed
exmdb: reduce "cache_interval" default value
Reduce the sqlite idle closing time to conserve resources. (Opening takes about 1500µs; accessing an open one is 4µs.)
1 parent 8b32fbc commit 42c62ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/exmdb_provider.4gx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The usual config file location is /etc/gromox/exmdb_provider.cfg.
3636
\fBcache_interval\fP
3737
The inactivity timer after which a mailbox's sqlite files are closed.
3838
.br
39-
Default: \fI2 hours\fP
39+
Default: \fI15min\fP
4040
.br
4141
Lower limit: 1s
4242
.TP

exch/exmdb/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static constexpr cfg_directive exmdb_gromox_cfg_defaults[] = {
4343
};
4444

4545
static constexpr cfg_directive exmdb_cfg_defaults[] = {
46-
{"cache_interval", "2h", CFG_TIME, "1s"},
46+
{"cache_interval", "15min", CFG_TIME, "1s"},
4747
{"dbg_synthesize_content", "0"},
4848
{"enable_dam", "1", CFG_BOOL},
4949
{"exmdb_body_autosynthesis", "1", CFG_BOOL},

0 commit comments

Comments
 (0)