Refactor cache and disable go-chi cache (#30417)

use built-in cache package to wrap external go-chi cache package
This commit is contained in:
wxiaoguang
2024-04-13 16:38:44 +08:00
repo.diff.committed_by GitHub
repo.diff.parent 8fd8978b49
repo.diff.commit c248f010ad
repo.diff.stats_desc%!(EXTRA int=15, int=198, int=209)

2
modules/cache/cache_twoqueue.go repo.diff.vendored
repo.diff.view_file

@@ -10,7 +10,7 @@ import (
"code.gitea.io/gitea/modules/json"
mc "gitea.com/go-chi/cache"
mc "gitea.com/go-chi/cache" //nolint:depguard
lru "github.com/hashicorp/golang-lru/v2"
)