mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-22 17:52:30 +01:00
Docs
This commit is contained in:
parent
ad860afb8b
commit
497f871447
2 changed files with 7 additions and 1 deletions
|
@ -313,7 +313,7 @@ func (c *messageCache) addMessages(ms []*message) error {
|
|||
}
|
||||
}
|
||||
if err := tx.Commit(); err != nil {
|
||||
log.Warn("Cache: Writing %d message(s) failed (took %v)", len(ms), time.Since(start))
|
||||
log.Error("Cache: Writing %d message(s) failed (took %v)", len(ms), time.Since(start))
|
||||
return err
|
||||
}
|
||||
log.Debug("Cache: Wrote %d message(s) in %v", len(ms), time.Since(start))
|
||||
|
|
|
@ -53,6 +53,12 @@
|
|||
# pragma journal_mode = WAL;
|
||||
# pragma synchronous = normal;
|
||||
# pragma temp_store = memory;
|
||||
# pragma busy_timeout = 15000;
|
||||
# vacuum;
|
||||
#
|
||||
# The "cache-batch-size" and "cache-batch-timeout" parameter allow enabling async batch writing
|
||||
# of messages. If set, messages will be queued and written to the database in batches of the given
|
||||
# size, or after the given timeout. This is only required for high volume servers.
|
||||
#
|
||||
# Debian/RPM package users:
|
||||
# Use /var/cache/ntfy/cache.db as cache file to avoid permission issues. The package
|
||||
|
|
Loading…
Reference in a new issue