去掉无用代码
This commit is contained in:
parent
e0786f7f8b
commit
0f0c3997c0
4
internal/pkg/cache/cache.go
vendored
4
internal/pkg/cache/cache.go
vendored
@ -46,8 +46,6 @@ var allUsernameCache *cache.VarCache[map[string]struct{}]
|
|||||||
|
|
||||||
var headerImagesCache *cache.MapCache[string, []models.PostThumbnail]
|
var headerImagesCache *cache.MapCache[string, []models.PostThumbnail]
|
||||||
|
|
||||||
var ctx context.Context
|
|
||||||
|
|
||||||
func InitActionsCommonCache() {
|
func InitActionsCommonCache() {
|
||||||
c := config.GetConfig()
|
c := config.GetConfig()
|
||||||
archivesCaches = &Arch{
|
archivesCaches = &Arch{
|
||||||
@ -95,8 +93,6 @@ func InitActionsCommonCache() {
|
|||||||
|
|
||||||
newCommentCache = cachemanager.MapCacheBy[string, string](nil, 15*time.Minute)
|
newCommentCache = cachemanager.MapCacheBy[string, string](nil, 15*time.Minute)
|
||||||
|
|
||||||
ctx = context.Background()
|
|
||||||
|
|
||||||
InitFeed()
|
InitFeed()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user