去除缓存

This commit is contained in:
微凉
2021-03-07 21:02:56 +08:00
parent 443067b80f
commit b677d6ad21
19 changed files with 162 additions and 351 deletions

View File

@@ -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

View File

@@ -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