mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2026-08-20 02:56:02 +00:00
Use hashicorp's LRU cache for DNS & certificates (#315)
Taken from #301 Co-authored-by: Moritz Marquardt <git@momar.de> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/315
This commit is contained in:
co-authored by
Moritz Marquardt
parent
b9a9467dba
commit
2c41e11f2f
@@ -29,7 +29,7 @@ func TestHandlerPerformance(t *testing.T) {
|
||||
AllowedCorsDomains: []string{"raw.codeberg.org", "fonts.codeberg.org", "design.codeberg.org"},
|
||||
PagesBranches: []string{"pages"},
|
||||
}
|
||||
testHandler := Handler(serverCfg, giteaClient, cache.NewInMemoryCache(), cache.NewInMemoryCache(), cache.NewInMemoryCache())
|
||||
testHandler := Handler(serverCfg, giteaClient, cache.NewInMemoryCache(), cache.NewInMemoryCache())
|
||||
|
||||
testCase := func(uri string, status int) {
|
||||
t.Run(uri, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user