WIP: Access cache

This commit is contained in:
binwiederhier
2026-05-28 17:13:14 -04:00
parent 47044c632e
commit 25520c4505
11 changed files with 601 additions and 64 deletions
+5
View File
@@ -378,6 +378,11 @@ 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 Managers are short-lived; the background ACL cache poller would only
// spam "database is closed" warnings after the subcommand returns. Mutations
// still refresh the local cache synchronously; the running server (if any)
// picks them up via its own poller.
AccessCacheReloadInterval: -1,
}
if databaseURL != "" {
host, dbErr := pg.Open(databaseURL)