1
Fork 0

[CHORE] Move cache library

- This is in the spirit of #5090.
- Move to a fork of gitea.com/go-chi/cache,
code.forgejo.org/go-chi/cache. It removes unused code (a lot of
adapters, that can't be used by Forgejo) and unused dependencies (see
go.sum). Also updates existing dependencies.
8c64f1a362..main
This commit is contained in:
Gusted 2024-08-27 01:57:40 +02:00
parent 0404662e99
commit bf0d100b84
No known key found for this signature in database
GPG key ID: FD821B732837125F
11 changed files with 22 additions and 75 deletions

View file

@ -24,7 +24,7 @@ import (
"code.gitea.io/gitea/modules/web"
web_types "code.gitea.io/gitea/modules/web/types"
"gitea.com/go-chi/cache"
"code.forgejo.org/go-chi/cache"
)
// APIContext is a specific context for API service

View file

@ -15,8 +15,8 @@ import (
"code.gitea.io/gitea/modules/recaptcha"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/turnstile"
mc "gitea.com/go-chi/cache"
mc "code.forgejo.org/go-chi/cache"
"code.forgejo.org/go-chi/captcha"
)

View file

@ -27,8 +27,8 @@ import (
"code.gitea.io/gitea/modules/web/middleware"
web_types "code.gitea.io/gitea/modules/web/types"
"code.forgejo.org/go-chi/cache"
"code.forgejo.org/go-chi/session"
"gitea.com/go-chi/cache"
)
// Render represents a template render

View file

@ -25,7 +25,7 @@ import (
"code.gitea.io/gitea/modules/setting"
api "code.gitea.io/gitea/modules/structs"
"gitea.com/go-chi/cache"
"code.forgejo.org/go-chi/cache"
)
const contributorStatsCacheKey = "GetContributorStats/%s/%s"

View file

@ -15,7 +15,7 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/test"
"gitea.com/go-chi/cache"
"code.forgejo.org/go-chi/cache"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)