clear user cache when user expires

This commit is contained in:
Harvey Tindall 2021-04-06 18:39:12 +01:00
parent 754b956206
commit 7dcc9b20a1
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ func (app *appContext) checkUsers() {
continue
}
delete(app.storage.users, id)
app.jf.CacheExpiry = time.Now()
if email {
address, ok := app.storage.emails[id]
if !ok {