Skip to content

Commit

Permalink
exmdb: reduce "cache_interval" default value
Browse files Browse the repository at this point in the history
Reduce the sqlite idle closing time to conserve resources.
(Opening takes about 1500µs; accessing an open one is 4µs.)
  • Loading branch information
jengelh committed Nov 6, 2024
1 parent 8b32fbc commit 42c62ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/exmdb_provider.4gx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The usual config file location is /etc/gromox/exmdb_provider.cfg.
\fBcache_interval\fP
The inactivity timer after which a mailbox's sqlite files are closed.
.br
Default: \fI2 hours\fP
Default: \fI15min\fP
.br
Lower limit: 1s
.TP
Expand Down
2 changes: 1 addition & 1 deletion exch/exmdb/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static constexpr cfg_directive exmdb_gromox_cfg_defaults[] = {
};

static constexpr cfg_directive exmdb_cfg_defaults[] = {
{"cache_interval", "2h", CFG_TIME, "1s"},
{"cache_interval", "15min", CFG_TIME, "1s"},
{"dbg_synthesize_content", "0"},
{"enable_dam", "1", CFG_BOOL},
{"exmdb_body_autosynthesis", "1", CFG_BOOL},
Expand Down

0 comments on commit 42c62ec

Please sign in to comment.