fix(acl): caching logic

This commit is contained in:
yusing
2025-04-26 08:05:26 +08:00
parent f1abb745fe
commit 8f20bd3840
2 changed files with 2 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ type checkCache struct {
const cacheTTL = 1 * time.Minute
func (c *checkCache) Expired() bool {
return c.created.Add(cacheTTL).After(utils.TimeNow())
return c.created.Add(cacheTTL).Before(utils.TimeNow())
}
//TODO: add stats