mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
clear user cache when user expires
This commit is contained in:
parent
754b956206
commit
7dcc9b20a1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user