mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-08 21:05:21 +00:00
Manual refinements
This commit is contained in:
+1
-5
@@ -378,11 +378,7 @@ func createUserManager(c *cli.Context) (*user.Manager, error) {
|
||||
ProvisionEnabled: false, // Hack: Do not re-provision users on manager initialization
|
||||
BcryptCost: user.DefaultUserPasswordBcryptCost,
|
||||
QueueWriterInterval: user.DefaultUserStatsQueueWriterInterval,
|
||||
// CLI subcommands never serve authorizeTopicAccess and are short-lived,
|
||||
// so the cache (and its background poller) would be wasted work. Mutations
|
||||
// hit the DB directly; the running server, if any, picks them up via its
|
||||
// own poller when the cache is enabled there.
|
||||
AccessCacheEnabled: false,
|
||||
AccessCacheEnabled: false, // Do not cache for CLI commands
|
||||
}
|
||||
if databaseURL != "" {
|
||||
host, dbErr := pg.Open(databaseURL)
|
||||
|
||||
Reference in New Issue
Block a user