Docs
parent
ad860afb8b
commit
497f871447
|
@ -313,7 +313,7 @@ func (c *messageCache) addMessages(ms []*message) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := tx.Commit(); err != nil {
|
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
|
return err
|
||||||
}
|
}
|
||||||
log.Debug("Cache: Wrote %d message(s) in %v", len(ms), time.Since(start))
|
log.Debug("Cache: Wrote %d message(s) in %v", len(ms), time.Since(start))
|
||||||
|
|
|
@ -53,6 +53,12 @@
|
||||||
# pragma journal_mode = WAL;
|
# pragma journal_mode = WAL;
|
||||||
# pragma synchronous = normal;
|
# pragma synchronous = normal;
|
||||||
# pragma temp_store = memory;
|
# 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:
|
# Debian/RPM package users:
|
||||||
# Use /var/cache/ntfy/cache.db as cache file to avoid permission issues. The package
|
# Use /var/cache/ntfy/cache.db as cache file to avoid permission issues. The package
|
||||||
|
|
Loading…
Reference in New Issue