mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
accounts: invalidate web user cache on changes as well
previously used app.jf.CacheExpiry = time.Now(), now either call app.InvalidateJellyfinCache() (when we only need it to get a user), or app.InvalidateUserCaches() (when the web user list needs to be updated).
This commit is contained in:
@@ -140,7 +140,7 @@ func newHousekeepingDaemon(interval time.Duration, app *appContext) *GenericDaem
|
||||
clearPWR := app.config.Section("captcha").Key("enabled").MustBool(false) && !app.config.Section("captcha").Key("recaptcha").MustBool(false)
|
||||
|
||||
if clearEmail || clearDiscord || clearTelegram || clearMatrix {
|
||||
d.appendJobs(func(app *appContext) { app.jf.CacheExpiry = time.Now() })
|
||||
d.appendJobs(func(app *appContext) { app.InvalidateJellyfinCache() })
|
||||
}
|
||||
|
||||
if clearEmail {
|
||||
|
||||
Reference in New Issue
Block a user