fix cache bug
This commit is contained in:
1 parent
a452469b51
commit
9e5815a5e0
2 files changed
+3
-1
No files matched your search
@@ -19,6 +19,7 @@ func init() {
|
||||
}
|
||||
|
||||
func LoadKeysCache() {
|
||||
KeysCache = cache.New(cache.NoExpiration, cache.NoExpiration)
|
||||
keys, err := GetAllKeys()
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
@@ -40,6 +41,7 @@ func FromKeyCacheRandomItem() string {
|
||||
}
|
||||
|
||||
func LoadAuthCache() {
|
||||
AuthCache = cache.New(cache.NoExpiration, cache.NoExpiration)
|
||||
users, err := GetAllUsers()
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
|
||||
Reference in new issue
Block a user