➖ 去除缓存
This commit is contained in:
@@ -25,12 +25,6 @@ type Config struct {
|
||||
Static string `yaml:"static"`
|
||||
SiteUrl string `yaml:"site_url" json:"site_url"` //网站url
|
||||
} `yaml:"server"`
|
||||
Cache struct {
|
||||
Enable bool `yaml:"enable"`
|
||||
Expiration int `yaml:"expiration"`
|
||||
CleanupInterval int `yaml:"cleanup_interval"`
|
||||
RefreshPassword string `yaml:"refresh_password"`
|
||||
}
|
||||
AliDrive struct {
|
||||
ApiUrl string `yaml:"api_url"` //阿里云盘api
|
||||
RootFolder string `yaml:"root_folder"` //根目录id
|
||||
|
@@ -1,7 +1,6 @@
|
||||
package conf
|
||||
|
||||
import (
|
||||
"github.com/patrickmn/go-cache"
|
||||
"gorm.io/gorm"
|
||||
"net/http"
|
||||
)
|
||||
@@ -16,8 +15,6 @@ var (
|
||||
Client *http.Client // request client
|
||||
Authorization string // authorization string
|
||||
|
||||
Cache *cache.Cache // cache
|
||||
|
||||
DB *gorm.DB
|
||||
|
||||
Origins []string // allow origins
|
||||
|
Reference in New Issue
Block a user